FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelImport.AssignPictureProperties Method

Changes the properties of an existing image.

Pascal
procedure AssignPictureProperties(const aPos: integer; const Row: integer; const Col: integer; const dh: integer; const dw: integer; const ImgHeight: integer; const ImgWidth: integer; const Anchor: TFlxAnchorType = at_MoveAndDontResize);
C++
__fastcall AssignPictureProperties(const int aPos, const int Row, const int Col, const int dh, const int dw, const int ImgHeight, const int ImgWidth, const TFlxAnchorType Anchor = at_MoveAndDontResize);
Parameters 
Description 
const aPos: integer 
Position of the image in the list. Goes between 0 and PicturesCount-1 
const Row: integer 
Row where the imaged will be moved. 
const Col: integer 
Column where the imaged will be moved. 
const dh: integer 
Delta x of image respective to Col, 1/1024 of a cell. 0 means totally at the left, 512 on half of the cell, 1024 means at the left of next cell. 
const dw: integer 
Delta y of image respective to Row, on 1/255 of a cell. 0 means totally at the top, 128 on half of the cell, 255 means at the top of next cell.  
const ImgHeight: integer 
New height of the image in pixels. 
const ImgWidth: integer 
New width of the image in pixels. 
const Anchor: TFlxAnchorType = at_MoveAndDontResize 
How the image will behave when inserting, deleting, moving or copying rows and columns.

 

You can use this method to resize or move an image on a sheet.

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