Available in the LEADTOOLS Imaging toolkit. |
PaintSizeMode property (Main Control)
Visual
Basic example
Visual
C++ 4.0 example
Access 2.0 example
Access
95, 97 example
Visual
J++ example
Syntax short PaintSizeMode
Overview: Refer to Displaying an Image.
Remarks
(Persistent property, available at design time) Determines the behavior of the AutoSetRects property, which automatically adjusts the display rectangles. It adjusts the destination rectangle as follows:
Setting |
Description |
PAINTSIZEMODE_NORMAL |
Width is the bitmap width. Height is the bitmap height. |
PAINTSIZEMODE_STRETCH |
Width is the control's client area width. Height is the client area height. The aspect ratio is not preserved. |
PAINTSIZEMODE_FITSIDES |
Width is the control's client area width. Height is set proportionally to maintain the aspect ratio. The AutoScroll property implements the vertical scroll bar. |
PAINTSIZEMODE_FIT |
The largest possible width or height is set to the control's client area width or height. The remaining dimension is set proportionally to maintain the aspect ratio. |
PAINTSIZEMODE_ZOOM |
The width and height are set to the bitmap width and height multiplied by the PaintZoomFactor property. |
See Also
Elements: AutoRepaint property, AutoSetRects property, PaintZoomFactor property, AutoScroll property, AutoSize property
Topics: Raster Images: Displaying Images