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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How can I rotate text layers around center of images.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
adisonx Posted - Nov 03 2021 : 05:02:07
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.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 05 2021 : 21:07:07
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
adisonx Posted - Nov 04 2021 : 00:50:33
I mean coding to rotate text layers around center of image not interactively.
xequte Posted - Nov 03 2021 : 18:01:36
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