add_picture_frame method

add_picture_frame

Creates a new PictureFrame and adds it to the end of the collection.

Returns

Created PictureFrame object.

def add_picture_frame(self, shape_type, x, y, width, height, image):
    ...
ParameterTypeDescription
shape_typeShapeTypeThe shape contained in the set ShapeType

of shapes, except all sorts 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 for a left side of shape’s frame.
yfloatThe Y-coordinate for a top side of shape’s frame.
widthfloatThe width of shape’s frame.
heightfloatThe height of shape’s frame.
imageIPPImageThe image of picture frame.

See Also