Aspose::Cells::Drawing::ShapeCollection::AddSvg method

ShapeCollection::AddSvg method

Adds svg image.

Aspose::Cells::Drawing::Picture Aspose::Cells::Drawing::ShapeCollection::AddSvg(int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width, const Vector<uint8_t> &svgData, 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.
svgDataconst Vector <uint8_t>&The svg image data.
compatibleImageDataconst Vector <uint8_t>&Converted image data from svg in order to be compatible with Excel 2016 or lower versions.

ReturnValue

Examples

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

See Also