Aspose::Cells::Drawing::ShapeCollection::AddIcons method

ShapeCollection::AddIcons method

Adds svg image.

Aspose::Cells::Drawing::Picture Aspose::Cells::Drawing::ShapeCollection::AddIcons(int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width, const Vector<uint8_t> &imageByteData, const Vector<uint8_t> &compatibleImageData)
ParameterTypeDescription
upperLeftRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of shape from its left row, in unit of pixel.
upperLeftColumnint32_tUpper left column index.
leftint32_tThe horizontal offset of shape from its left column, in unit of pixel.
heightint32_tThe height of shape, in unit of pixel.
widthint32_tThe width of shape, in unit of pixel.
imageByteDataconst Vector <uint8_t>&The image byte data.
compatibleImageDataconst Vector <uint8_t>&Converted image data from svg in order to be compatible with Excel 2016 or lower versions.

ReturnValue

Examples

//add icon
Vector<uint8_t> imageData{ 0 };//Gets image data into 'imageData' from file(e.g image.svg . Note: You need to read the data into this variable.).
Picture picture = shapes.AddIcons(4, 0, 5, 0, -1, -1, imageData, Vector<uint8_t>(0));

See Also