public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shape.setPictureIndex(pictureIndex);shapes.add(shape);onCreate(shape);EscherSpRecord sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID);if (shape.getAnchor().isHorizontallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.getAnchor().isVerticallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPVERT);}return shape;}

public HSSFPicture CreatePicture(HSSFChildAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(this, anchor);shape.Parent = this;shape.Anchor = anchor;shape.PictureIndex=pictureIndex;shapes.Add(shape);OnCreate(shape);EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);if (shape.Anchor.IsHorizontallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.Anchor.IsVerticallyFlipped){sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT);}return shape;}
