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
 Layer Rotation angle
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sybaritica

Canada
11 Posts

Posted - Oct 15 2025 :  14:07:48  Show Profile  Reply
Does anyone have a quick and dirty algorithm for converting a ImageEnView.CurrentLayer.Rotation value into an absolute angle value ranged from 0 - 359, where a 0 value for ImageEnView.CurrentLayer.Rotation translates as 90 degrees?

xequte

39222 Posts

Posted - Oct 15 2025 :  15:16:01  Show Profile  Reply
Hi

Do you just meaning something like:

a := Trunc( Rotate) + 90;
IEFixAngle360( a );


Otherwise, do any of the following help (iexUtils.pas):

function ImageEnRotateAngleToAngle(Angle: Double): Double;
function IEGetReferenceAngle(Angle: double): double;


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