Aspose::Cells::Drawing::ShapeCollection::AddIcons method
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
upperLeftRow | int32_t | Upper left row index. |
top | int32_t | Represents the vertical offset of shape from its left row, in unit of pixel. |
upperLeftColumn | int32_t | Upper left column index. |
left | int32_t | The horizontal offset of shape from its left column, in unit of pixel. |
height | int32_t | The height of shape, in unit of pixel. |
width | int32_t | The width of shape, in unit of pixel. |
imageByteData | const Vector <uint8_t>& | The image byte data. |
compatibleImageData | const 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
- Class Picture
- Class Vector
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++