FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
SaveImgStreamToGraphic Function

Loads an image returned by TFlexCelImport.GetPicture into a TPicture object.

Pascal
procedure SaveImgStreamToGraphic(const Pic: TStream; const PicType: TXlsImgTypes; const Picture: TPicture; var Handled: boolean);
C++
SaveImgStreamToGraphic(const TStream Pic, const TXlsImgTypes PicType, const TPicture Picture, boolean Handled);
Parameters 
Description 
const Pic: TStream 
Stream with the data returned by TFlexCelImport.GetPicture
const PicType: TXlsImgTypes 
Picture type returned by TFlexCelImport.GetPicture
const Picture: TPicture 
TPicture object where you want to load the image. 
var Handled: boolean 
Will return True if the image could be loaded, false if it couldn't be parsed. 

If you want to save the image to disk instead of loading it into a TPicture, you might want to use SaveImgStreamToDiskImage instead.

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!