RenderCenter property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool RenderCenter

Delphi Syntax

RenderCenter: Boolean

Overview

Refer to Printing an Image.

Remarks

Boolean value that indicates whether to center the image. An image can be centered vertically, horizontally, or both, depending on the values of the RenderCenter property and the iTop and iLeft parameters passed to the Render method. Possible values are:

Setting

Description

TRUE

Center the image horizontally and/or vertically, depending on the values of the iTop and iLeft parameters of the Render method. This is the default value.

FALSE

Do not center the image horizontally and/or vertically, regardless of the values of the iTop and iLeft parameters of the Render method.

If the RenderCenter property is set to TRUE, and the iTop parameter of the Render method is 0, the image will be centered vertically.

If the RenderCenter property is set to TRUE, and the iLeft parameter of the Render method is 0, the image will be centered horizontally.

If the RenderCenter property is set to TRUE, and both the iTop and iLeft parameters of the Render method are 0, the image will be centered vertically and horizontally.

If the RenderCenter property is FALSE, the image will not be centered.

See Also

Elements:

Render method

Topics:

Raster Images: Printing Images