ImageEn, unit IEVect

TImageEnVect.RotateAllObjects

TImageEnVect.RotateAllObjects


Declaration

procedure RotateAllObjects(angle: double; center: TIERotateCenter);


Description

Rotates all objects 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
It is better to call RotateAllObjects before Proc.Rotate.


Example

// rotate the image and objects by 90 degrees
ImageEnVect1.RotateAllObjects(90, ierImage);
ImageEnVect1.Proc.Rotate(90);


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of RotateAllObjects, use: TIELayer.Rotate

For i := 0 to ImageEnView1.LayersCount do
  ImageEnView1.Layers[i].Rotate := 45;
ImageEnView1.Update();