RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBImage.DestRect Method

Returns the coordinates and the dimensions of the given picture, taking the Stretch, Proportional, and Center properties into account.

Pascal
function DestRect(APicture: TPicture): TRect;
C++
__fastcall TRect DestRect(TPicture APicture);

Make a call to DestRect to determine the coordinates and dimensions of APicture, when attempting to place the picture on the database image control. A TRect object is returned, storing the corresponding coordinates and dimensions.  

DestRect takes into account the Stretch, Proportional, and Center properties. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!