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

jiang_jiji

China
6 Posts

Posted - Apr 29 2026 :  08:05:40  Show Profile  Reply
When using FillTool to perform a color fill, the alpha (transparency) value set via ColorFillAlpha is not respected. The filled result is always fully opaque.

ImageView.FillTool.ColorFillValue := clBlack;
ImageView.FillTool.ColorFillAlpha := 200;
ImageView.FillTool.Tolerance := 20;
ImageView.MouseInteractGeneral := [miColorFill];

Expected:


Actual:

xequte

39411 Posts

Posted - Apr 29 2026 :  18:22:28  Show Profile  Reply
Hi

In v15.0.0 and older, the alpha is not set if the image does not contain an alpha channel, so you should create one using:

ImageView1.IEBitmap.AlphaChannel; // Create alpha channel if it does not exist

This will happen automatically in v15.0.1.

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