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
 Feedback for adding frames with increased transparency?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

860 Posts

Posted - Aug 07 2021 :  17:52:28  Show Profile  Reply
In a color editing action, I repeatedly create red frames around my image (PNG with RGB True Color format), each time with higher transparency:


ImageEnView1.AlphaChannel;
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 255);
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 205);
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 155);
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 105);
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 55);
ImageEnView1.IEBitmap.Resize(5, 5, 5, 5, clRed, 5);
ImageEnView1.Update;


As this can be done only with certain image/color formats - is it possible to get automatic feedback from the IEBitmap.Resize method to be informed whether the transparency has been successfully applied to the added frame?

xequte

38180 Posts

Posted - Aug 07 2021 :  20:28:09  Show Profile  Reply
Hi Peter

While editing, changes to the alpha channel (once enabled) should always be successful. It is only when saving that alpha channel is ignored (e.g. if saving to JPEG) or reduced in bit depth (e.g. if saving to GIF).


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