TImageEnVect.RotateObject
Declaration
procedure RotateObject(hobj: integer; angle: double; center: TIERotateCenter);
Description
Rotates specified object by the specified angle (in degrees).
If center is ierImage only 90/180/270 degrees rotations are allowed
iekBOX, iekELLIPSE, iekBITMAP, iekTEXT can be rotated only by 90/180/270 degrees
This method doesn't work with iekMEMO and curved texts.
IEV_PREVIOUS_INSERTED_OBJECT can be specified for
hobj to refer to the object that was last inserted.
IEV_ALL_SELECTED_OBJECTS can be specified for
hobj to refer to all objects that are currently selected.
// rotate the image and object 'hobj' by 90 degrees
ImageEnVect1.RotateObject(hobj, 90, ierImage);
ImageEnVect1.Proc.Rotate(90);
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of RotateObject, use:
TIELayer.Rotate
ImageEnView1.CurrentLayer.Rotate := 45;
ImageEnView1.Update();