InsertPictureFrame()

ShapeCollection::InsertPictureFrame(int32_t, ShapeType, float, float, float, float, System::SharedPtr<IPPImage>) method

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

System::SharedPtr<IPictureFrame> Aspose::Slides::ShapeCollection::InsertPictureFrame(int32_t index, ShapeType shapeType, float x, float y, float width, float height, System::SharedPtr<IPPImage> image) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the picture frame.
shapeTypeShapeTypeSpecifies 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 | System::SharedPtr<IPPImage> | The IPPImage to display in the picture frame. |

Return Value

The newly created IPictureFrame.

See Also