CenterImage property (Main Control)

Builder example

Delphi example

 

Builder Syntax

bool CenterImage

Delphi Syntax

CenterImage : Boolean

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