ImageEn, unit iexLayers

TIELayer.RotateCenterX

TIELayer.RotateCenterX


Declaration

property RotateCenterX: Double;


Description

Specifies the horizontal rotation center, in percentage of layer size.
0.5 means center (default), while 0 is left side and 1 is right side.
Also allowed are values less than 0 and greater than 1 (e.g. 2 would rotate at one width to the right of the image).
This value (and RotateCenterY) is modified when user moves the central grip, when layers rotation is active.

Note: Applies only to TIEImageLayer

Default: 0.5


Example

// Move rotation center to 25% in from top-left corner
ImageEnView1.CurrentLayer.RotateCenterX := 0.25;
ImageEnView1.CurrentLayer.RotateCenterY := 0.25;
ImageEnView1.Update();


See Also

 RotateCenterY
 Rotate
 Flip