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 rotate
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Deeron

67 Posts

Posted - Mar 09 2022 :  08:39:10  Show Profile  Reply
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

xequte

38608 Posts

Posted - Mar 09 2022 :  17:58:43  Show Profile  Reply
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
Go to Top of Page

Deeron

67 Posts

Posted - Mar 10 2022 :  05:59:55  Show Profile  Reply
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
Go to Top of Page

xequte

38608 Posts

Posted - Mar 10 2022 :  21:44:08  Show Profile  Reply
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
Go to Top of Page

Deeron

67 Posts

Posted - Mar 16 2022 :  04:31:23  Show Profile  Reply
Hi Nigel,

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

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