RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBImage.Proportional Property

Indicates whether bitmaps and metafiles should be changed, without distortion, so that they fit the bounds of the database image.

Pascal
property Proportional: Boolean;
C++
__property Boolean Proportional;

Set Proportional to True to ensure that the bitmap or metafile can be fully displayed in the database image without any distortion. The distortion may appear when the Stretch property is set to True. When Proportional is True, bitmaps that are too large to fit in the database image are scaled down (while maintaining the same aspect ratio) until they fit in the database image. Bitmaps that are too small are displayed normally. Proportional can reduce the magnification of the bitmap, but does not increase it.  

When the database image resizes, the bitmap resizes as well. 

To resize the bitmap so that it fits exactly in the database image, even if that causes distortion, use the Stretch property instead.  

The default value for Proportional is False.

Note: Proportional has no effect if the Picture property contains an icon.
 

 

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