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
 IEvolution .NET Image & shape rotate
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Deeron

67 Posts

Posted - Jan 20 2022 :  11:42:57  Show Profile  Reply
Hi Nigel,

I would like to ask for some help. I have two questions about the rotation of the image.

1. How can I use anti-aliasing on the rotated image, after rotation the image is pixelated around the image, it's not pretty. Turning on AntiAliasing has no effect. The rotations are handled by IEViewer (EnableRotateLayers is enabled). What can I do?

2. When I rotate the image, the dashed line selection box with the grip points rotates with it. When I rotate a rectangle shape it rotates within the selection box. How can I rotate the shape like the picture? Can I set whether the rotation should be with the selection box or inside the selection box?

I have attached a picture.

Thanks.

Regards,
Deeron

xequte

38182 Posts

Posted - Jan 20 2022 :  15:05:25  Show Profile  Reply
Hi Deeron

1. Please use LayersFixRotations:

https://www.imageen.com/ievolutionhelp/html/acb9058d-236f-a900-68c5-0965d6421c75.htm

2. That is a limitation due to the difference in handling of image and shape layers.

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

Deeron

67 Posts

Posted - Jan 21 2022 :  06:56:23  Show Profile  Reply
Hi Nigel,

Unfortunately, for the my problem described in point 1, the LayersFixRotations you suggested didn't work, the rotated image the same pixelated, which is really ugly.

The help says in the rotation section:
"When rotations are handled by IEViewer (setting EnableRotateLayers), you don't need to call LayersFixRotations, LayersFixSizes and LayersFixBorders."
Currently the EnableRotateLayers property is on, value is true.
However, you suggested that I use the LayersFixRotations method.
The help says in the LayersFixRotations section:
"This method call IEImage.LayersFixSizes for each layer to rotate."

Why do I need to call the LayersFixRotations method when it calls the LayersFixSizes method, but according to the help this method does not need to be called if the EnableRotateLayers property is enabled because it is already called automatically. I don't understand this now.

The method you suggested did not lead to results. How can I ensure that the image is not pixelated after rotate? Any other solution, suggestion?

Regards,
Deeron
Go to Top of Page

xequte

38182 Posts

Posted - Jan 23 2022 :  23:33:10  Show Profile  Reply
Hi Deeron

What is your LayersRotatationFilter:

https://www.imageen.com/ievolutionhelp/html/ec47581e-d4e6-ed76-d37a-6c9d4414ebe1.htm

Also if sized, ResampleFilter (if you have enabled UseResampleFilter):

https://www.imageen.com/ievolutionhelp/html/ea9f091a-2892-4c98-b811-3363f9ed2351.htm


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

Deeron

67 Posts

Posted - Jan 24 2022 :  07:12:48  Show Profile  Reply
"What is your LayersRotatationFilter"

Ohh... :(
This property was not set. This is exactly what I need. If I hadn't gotten help from you, I'm not sure I would have found this property.
Thanks for your help, it's fine now.

Regards,
Deeron
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: