Table of Contents

IShapeOptionList.AsImage Method

Returns a byte array with the image if it exists, otherwise null. Note that for SVG images, xlsx files store both a PNG and SVG image. In those cases, for backward compatibility reasons, this method will return the PNG image. To get the SVG, call AsImageAlternate

Syntax

Unit: FlexCel.Core

function IShapeOptionList.AsImage(const xls: TCoreExcelFile; const objectPath: string; const key: TShapeOption): TBytes; overload; virtual; abstract;

Parameters

<-> Parameter Type Description
const xls TCoreExcelFile File with the images.
const objectPath string Object path to the image.
const key TShapeOption Property Name.

See also