The DispCenterX and DispCenterY properties get or set the coordinates of a point on an image that will be displayed from the center of the ImageKit Control.

[C++Builder]   imagekitcontrolname->DispCenterY[= int ]
[Delphi]   imagekitcontrolname.DispCenterY [= Long ]

Property Value

DispCenterY gets or sets the vertical position of a point on an image that will be displayed from the center of the ImageKit Control. (In pixels)

Explanation

The DispCenterX and DispCenterY properties get or set the coordinates of a point on an image that will be displayed from the center of the ImageKit Control. The DispCenterX property determines the horizontal distance from the left side of the image. (Shown as X in the diagram below) and the DispCenterY property determines the vertical distance from the top of the image (Shown as Y in the diagram below). To display the image, the DispCenterX and DispCenterY properties, the image must be displayed in Actual Size and the DispStartX and DispStartY properties must not be set or must be set to 0. Furthermore, once the image is displayed, if the image is scolled, the DispCenterX and DispCenterY properties will be cleared and the point on the image shown at the top left corner of the ImageKit Control will be set in the DispStartX and DispStartY properties. To use the DispCenterX and DispCenterY properties again, you must reset the DispStartX and DispStartY properties to 0.

Setting this value

This value can be set at design-time and at run-time.

Retrieving this value

This value can be retrieved at run-time.

 

The ImageKit10 VCL is a product created by Newtone Corporation