PaintSizeMode property (Main Control)
|
Builder Syntax |
TPaintSizeMode PaintSizeMode |
|
Delphi Syntax |
PaintSizeMode: TPaintSizeMode |
|
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 |
|
smNormal |
Width is the bitmap width. Height is the bitmap height. |
|
smStretch |
Width is the control's client area width. Height is the client area height. The aspect ratio is not preserved. |
|
smFitSides |
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. |
|
smFit |
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. |
|
smZoom |
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: |