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
 ClearSel and CropSel
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brm121966

USA
53 Posts

Posted - Nov 29 2022 :  19:00:32  Show Profile  Reply
Hello.
I am uploading a jpg image.
I use
IEV_Load.Proc.ClearSel(true);

The function does not make the background transparent.
But.
I am uploading a jpg image.
First I apply
IEV_Load.Proc.CropSel(true);

and then
IEV_Load.Proc.ClearSel(true);
the background will be transparent.

You can do
IEV_Load.Proc.ClearSel(true);
made the background blank from the first application.
Thank you.

Rudolf

xequte

38176 Posts

Posted - Nov 29 2022 :  20:02:15  Show Profile  Reply
Hi Rudolf

You need to ensure the image contains an alpha channel:

ImageEnView1.IEBitmap.AlphaChannel; // Ensure image contains an alpha channel
ImageEnView1.Proc.ClearSel(true);


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

brm121966

USA
53 Posts

Posted - Nov 30 2022 :  19:55:49  Show Profile  Reply
Hi Nigel,
For the CropSel(true) function, I don't need to set the alpha channel. It looks like the CropSel(true) function sets the alpha channel itself.
Perhaps it would be more correct for the ClearSel(true) and CropSel(true) functions to work the same way with the alpha channel.
Thank you.


Rudolf
Go to Top of Page

xequte

38176 Posts

Posted - Dec 01 2022 :  14:57:30  Show Profile  Reply
Hi Rudolf

Yes, that is true. We will implement that.

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