add_picture_frame method

add_picture_frame

Creates a new picture frame containing the specified image and adds it to the end of the shape collection.

Returns

The newly created IPictureFrame.

def add_picture_frame(self, shape_type, x, y, width, height, image):
    ...
ParameterTypeDescription
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