CenterImage property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax BOOL CenterImage

Overview:  Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Enables or disables the automatic adjustment of display rectangles in order to center the image in the control's client area, when the width and/or height of the destination rectangle is smaller than the width and/or height of the client area.

For example, this can be used to center a small image when it is displayed in a control that is larger than the image's dimensions. This can also be used in conjunction with PaintSizeMode property and PaintZoomFactor property to center an image when the zoomed display dimensions are smaller than the control's dimensions.

See Also

Elements:  AutoSetRects property, DstLeft property, DstTop property, DstWidth property, DstHeight property, DstClipLeft property, DstClipTop property, DstClipHeight property, DstClipWidth property, AutoScroll property, PaintSizeMode property, PaintZoomFactor property

Topics:  Raster Images: Displaying Images