Converts an image returned by TFlexCelImport.GetPicture from Excel internal format to a format that can be saved to disk.
procedure SaveImgStreamToDiskImage(const Pic: TStream; const PicType: TXlsImgTypes; const OutStream: TStream; out Saved: boolean);
SaveImgStreamToDiskImage(const TStream Pic, const TXlsImgTypes PicType, const TStream OutStream, boolean Saved);
|
Parameters |
Description |
|
const Pic: TStream |
Stream with the data returned by TFlexCelImport.GetPicture. |
|
const PicType: TXlsImgTypes |
Picture type returned by TFlexCelImport.GetPicture. |
|
const OutStream: TStream |
Stream where you want to save the image. |
|
out Saved: boolean |
Will return true if FlexCel coud process the file, false if the file was in an unknown format. |
If you want to load the image into a TPicture object instead of saving it to disk, you might want to use SaveImgStreamToGraphic instead.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|