RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TImage.AutoSize Property

Specifies whether the control sizes itself automatically to accommodate the dimensions of the image.

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

Use AutoSize to specify whether the TImage control adjusts its own dimensions to match the dimensions of the image that the Picture property specifies. When AutoSize is true, the TImage control forces its own height and width to match those of the picture it represents. When AutoSize is false (the default), the Center and Stretch properties determine how the image control deals with discrepancies between the size of the picture and the size of the image control. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!