git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@529206
13f79535-47bb-0310-9956-
ffa450edef68
return shape;
}
+ /**
+ * Creates a picture.
+ *
+ * @param anchor the client anchor describes how this group is attached
+ * to the sheet.
+ * @return the newly created shape.
+ * @author zunker
+ */
+ public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex)
+ {
+ HSSFPicture shape = new HSSFPicture(this, anchor);
+ shape.anchor = anchor;
+ shape.setPictureIndex( pictureIndex );
+ shapes.add(shape);
+ return shape;
+ }
/**
* Return all children contained by this shape.
*/
}
return count;
}
+
}