ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How can I rotate text layers around center of images.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

adisonx

Thailand
29 Posts

Posted - Nov 03 2021 :  05:02:07  Show Profile  Reply
I have text layers above center of images and I want to rotate all text layers about center of image while maintain vertical space between text.
How can I do that.

Thank you.

xequte

38616 Posts

Posted - Nov 03 2021 :  18:01:36  Show Profile  Reply
Hi

I'm afraid there is not a way to do that interactively at this time. Or do you mean by coding?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

adisonx

Thailand
29 Posts

Posted - Nov 04 2021 :  00:50:33  Show Profile  Reply
I mean coding to rotate text layers around center of image not interactively.
Go to Top of Page

xequte

38616 Posts

Posted - Nov 05 2021 :  21:07:07  Show Profile  Reply
OK. In that case it's all maths. Take the center of your text layer and calculate its angle and distance from the center of the image. Rotate the values, then update the layer position and rotation.

There are methods in hyieutils.pas that will help you, such as:

function IEDistPoint2Point(x1, y1, x2, y2: integer): double;
procedure IERotatePoint(var px, py: integer; Angle: double; CenterX: integer = 0; CenterY: integer = 0);

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: