This method will load a WMF image returned from Excel into a TPicture image.
procedure LoadWmf(const OutPicture: TPicture; const InStream: TStream; const PicType: TXlsImgTypes);
LoadWmf(const TPicture OutPicture, const TStream InStream, const TXlsImgTypes PicType);
|
Parameters |
Description |
|
const OutPicture: TPicture |
TPicture where the image will be loaded. |
|
const InStream: TStream |
Stream with the image as Excel returns it. |
|
const PicType: TXlsImgTypes |
Picture type as returned from Excel. this method will only handle EMF and WMF, for a generic method that an convert any kind of images use SaveImgStreamToGraphic. |
WMF images are stored differently in Excel than in disk, so you need this method to do the conversion.
Normally you will want to use SaveImgStreamToGraphic or SaveImgStreamToDiskImage instead of this method, since those ones convert any kind of images form Excel to their disk representation, not only metafiles.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|