Table of Contents

TXlsFile.AddImage Method

Adds an image to the active sheet. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use TExcelFile.AddImageAlternate

Syntax

Unit: FlexCel.XlsAdapter

procedure TXlsFile.AddImage(const data: TBytes; const imageType: TXlsImgType; imageProperties: IImageProperties); overload; override;

Parameters

<-> Parameter Type Description
const data TBytes byte array with the image data.
const imageType TXlsImgType Type of image you are inserting (bmp, jpg, etc).
imageProperties IImageProperties Placement and other properties of the image.

See also