Available in the LEADTOOLS Imaging toolkit. |
AutoSetRects property (Main Control)
Visual
Basic example
Visual
C++ 4.0 example
Access 2.0 example
Access
95, 97 example
Visual
J++ example
Syntax BOOL AutoSetRects
Overview: Refer to Displaying an Image.
Remarks
(Persistent property, available at design time) Enables or disables the automatic adjustment of display rectangles when bitmap dimensions change.
Setting |
Description |
TRUE |
The source and destination display rectangles change when the bitmap changes. This occurs, for example, when loading a bitmap. The top and left values change to 0. The width and height values change according to the settings of the PaintSizeMode property and the PaintZoomFactor property. |
FALSE |
Disables automatic adjustment of rectangles. |
Note: If you disable automatic adjustment of rects, you must update all four rects in order for the display to be correct when the size of the image is changed.
See Also
Elements: AutoRepaint property, PaintSizeMode property, PaintZoomFactor property, AutoScroll property, AutoSize property
Topics: Raster Images: Displaying Images