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):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the picture frame. |
| shape_type | ShapeType | Specifies 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. |
| x | float | The x-coordinate of the picture frame, in points. |
| y | float | The y-coordinate of the picture frame, in points. |
| width | float | The width of the picture frame, in points. |
| height | float | The height of the picture frame, in points. |
| image | IPPImage | The IPPImage to display in the picture frame. |
See Also
- class
IPictureFrame - class
IPPImage - class
ShapeCollection - enumeration
ShapeType - module
aspose.slides - library
Aspose.Slides