TXlsBaseChart.GetImage Method
Returns an image and its type.
Syntax
Unit: FlexCel.XlsAdapter
procedure TXlsBaseChart.GetImage(const imageIndex: Integer; const objectPath: string; var imageType: TXlsImgType; const outStream: TStream; const usesObjectIndex: Boolean); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | imageIndex | Integer | Index of the image. (1 based) |
const | objectPath | string | Object path to the image when it is a grouped image. For toplevel images you can use String.Empty. In other case, you need to use the value returned by GetObjectProperties If it is "absolute"(it starts with "\\"), then the path includes the objectIndex, and the objectIndex is not used. An object path of "\\1\\2\\3" is exactly the same as using objectIndex = 1 and objectPath = "2\\3" |
var | imageType | TXlsImgType | Returns the image type for the data returned. (If it is a bmp, jpg or other) |
const | outStream | TStream | Stream where the image data will be copied. |
const | usesObjectIndex | Boolean | If false (the default) then imageIndex is an index to the list of images. When true imageIndex is an index to the list of all objects in the sheet. When you have the object id, you can avoid calling ObjectIndexToImageIndex which is a slow method, by setting this parameter to true. |