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 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 - Mar 09 2022 : 08:39:10
Hi Nigel,

Please help me. I am rotating an image with
IEViewer.Image.Rotate(angle, antialias);

After rotation, the background colour of the rectangle enclosing the image will be black. I want it to be transparent, what else do I need to set for that?

Sampe rotated image:


Regards,
Deeron

4   L A T E S T    R E P L I E S    (Newest First)
Deeron Posted - Mar 16 2022 : 04:31:23
Hi Nigel,

It's perfect. This is exactly what I need.

Regards,
Deeron
xequte Posted - Mar 10 2022 : 21:44:08
Hi Deeron

Sorry, you'll need to enable/add an alpha channel before rotating.

The easiest way to to this appears to be calling:

IEViewer.IEImage.GetBitmapAlphaHandle();

https://www.imageen.com/ievolutionhelp/html/58251aa8-2092-6625-e683-ec3422aa0d35.htm

Nigel
Xequte Software
www.imageen.com
Deeron Posted - Mar 10 2022 : 05:59:55
Hello Nigel,

Before and after rotation the IEViewer.BackColor is ARGB=(255, 240, 240, 240).
Moreover, it's not even black. I do not set the BackColor property at code level.
If I change the BackColor property to Color.Empty, it doesn't help. :(

I have also tried the following:
IEViewer.Image.Rotate(angle, antialias, AntialiasMode.Bilinear, new IERGB(Color.Transparent));
IEViewer.Image.Rotate(angle, antialias, AntialiasMode.Bilinear, new IERGB(Color.Empty));

Unfortunately, here Color.Transparent value resulted in a white background color and the Color.Empty value resulted in a black background.

Unfortunately, these did not lead to any results. :(

Regrads,
Deeron
xequte Posted - Mar 09 2022 : 17:58:43
Hi Deeron

What is the value of BackColor:

https://www.imageen.com/ievolutionhelp/html/9d3e8e0c-5315-ee62-e4db-f6d3b77b5ada.htm

Nigel
Xequte Software
www.imageen.com