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
 IEvolution .NET Image & shape rotate

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
Deeron Posted - Jan 20 2022 : 11:42:57
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

4   L A T E S T    R E P L I E S    (Newest First)
Deeron Posted - Jan 24 2022 : 07:12:48
"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
xequte Posted - Jan 23 2022 : 23:33:10
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
Deeron Posted - Jan 21 2022 : 06:56:23
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
xequte Posted - Jan 20 2022 : 15:05:25
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