Aspose::Cells::Drawing::ShapeCollection::AddOleObject method

ShapeCollection::AddOleObject method

Adds an OleObject.

OleObject Aspose::Cells::Drawing::ShapeCollection::AddOleObject(int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width, const Vector<uint8_t> &imageData)
ParameterTypeDescription
upperLeftRowint32_t
topint32_t
upperLeftColumnint32_t
leftint32_t
heightint32_t
widthint32_t
imageDataconst Vector <uint8_t>&

ReturnValue

Examples

Vector<uint8_t> imgData{ 0 };//Gets image data into 'imgData' from file(e.g image.jpg . Note: You need to read the data into this variable.).
OleObject oleObject = shapes.AddOleObject(4, 0, 5, 0, 300, 500, imgData);

See Also