|
FlexCel Studio for VCL/LCL
|
Retrieves an image from a sheet.
procedure GetPicture(const aPos: integer; const Pic: TStream; var PicType: TXlsImgTypes; var ClientAnchor: TClientAnchor);
__fastcall GetPicture(const int aPos, const TStream Pic, TXlsImgTypes PicType, TClientAnchor ClientAnchor);
|
Parameters |
Description |
|
const aPos: integer |
Position of the image in the image list. |
|
const Pic: TStream |
Stream where FlexCel will save the image. |
|
var PicType: TXlsImgTypes |
FlexCel will return the type of image here. |
|
var ClientAnchor: TClientAnchor |
FlexCel will use this variable to return the anchor of the image. |
Returns a stream with the data for the image at pos aPos. For bitmapped images (JPEG, PNG and BMP) this is the actual data for the image. If you save the stream to a file, it will open with an image editor.
For Metafiles (WMF, EFM, PIC) this is a 34 bits Header plus the image data.
Byte 32 of the header is 0 if the data is compressed (using zlib algorithm), or other value if it is not.
You can use the methods SaveImgStreamToGraphic and SaveImgStreamToDiskImage in UXlsPictures to convert the returned stream into a real image.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|