insert_picture_frame method

insert_picture_frame

Creates a new picture frame containing the specified image and inserts it into the shape collection at the specified index.

Returns

The newly created IPictureFrame.

def insert_picture_frame(self, index, shape_type, x, y, width, height, image):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the picture frame.
shape_typeShapeTypeSpecifies the shape type contained in ShapeType,

except for all kinds of lines:





ShapeType.Line,





ShapeType.StraightConnector1,





ShapeType.BentConnector2,





ShapeType.BentConnector3,





ShapeType.BentConnector4,





ShapeType.BentConnector5,





ShapeType.CurvedConnector2,





ShapeType.CurvedConnector3,





ShapeType.CurvedConnector4,





ShapeType.CurvedConnector5.
xfloatThe x-coordinate of the picture frame, in points.
yfloatThe y-coordinate of the picture frame, in points.
widthfloatThe width of the picture frame, in points.
heightfloatThe height of the picture frame, in points.
imageIPPImageThe IPPImage to display in the picture frame.

See Also