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
 Rotate layers with bitmap
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JonMRobertson

USA
32 Posts

Posted - Aug 17 2023 :  07:48:31  Show Profile  Reply
Consider a TImageEnView with a bitmap and one or more layers. When rotating or flipping the bitmap, is there an easy way to affect the layers so that they appear in the same position on the bitmap after the rotate/flip? When rotating, the layer would be rotated as well as moved.

I tried TLayer.LayersFixRotations (actually loAutoFixRotation) but that does not accomplish what I need.

Thanks!

xequte

38614 Posts

Posted - Aug 17 2023 :  20:16:01  Show Profile  Reply
Hi Jon

Sorry, there is not an easy way to handle that at this time. You would need to iterate through the layers and update the position relative to the image center.

Please see the example at:

http://www.imageen.com/help/TImageEnView.LayersCount.html



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