FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelImport.AddPicture Method (ByteArray, TXlsImgTypes, TImageProperties, TFlxAnchorType)

Inserts a new picture on the active sheet.

Pascal
procedure AddPicture(const Pic: ByteArray; const PicType: TXlsImgTypes; const Properties: TImageProperties; const Anchor: TFlxAnchorType = at_MoveAndDontResize); overload;
C++
__fastcall AddPicture(const ByteArray Pic, const TXlsImgTypes PicType, const TImageProperties Properties, const TFlxAnchorType Anchor = at_MoveAndDontResize);
Parameters 
Description 
const Pic: ByteArray 
This is the raw data for the image as an array of bytes.  
const PicType: TXlsImgTypes 
This is the image type for the new image. Picture might be PNG, JPEG, WMF or EMF. 
const Properties: TImageProperties 
Position of the image on the sheet. You have to set the first and last columns and rows where the image will be placed, the offset from the row and column (dx and dy), and optionally a filename for the image. Note that the filename property won't show on Excel. See Excel Internal Units for an explanation of dx and dy. 
const Anchor: TFlxAnchorType = at_MoveAndDontResize 
How the image will behave when inserting, deleting, moving or copying rows and columns. 
Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!