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
 FloodFill issue

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
PeterPanino Posted - Oct 25 2022 : 03:03:34
Delphi 11.2
ImageEn 11.4.0

Please compile the attached small demo project.
Follow exactly these steps:

1. Start the app
2. Click the ButtonColorFill
3. Click the ImageEnView to fill the ImageEnView with yellow color
4. Click the ButtonAlphaFill
5. Click the ImageEnView to fill the ImageEnView with transparency
6. Click the ButtonColorFill
7. Click the ImageEnView: The ImageEnView is NOT filled with the yellow color! Why?

attach/PeterPanino/202210253154_FloodFillTest.zip
2.17 KB

UPDATE: Obviously, the added alpha transparency makes any color added after step #5 transparent (i.e., invisible).
1. So is there a feature to remove alpha transparency from the whole image?
2. Or, what would be even better: A Floodfill command that REMOVES alpha transparency in the same way as [miAlphaFill] adds alpha transparency. (Which is the same as setting the AlphaFill value to 255).
3. Or even yet better: An enhanced [miColorFill] that automatically removes alpha transparency on every pixel where it applies the fill color. Does such an enhanced [miColorFill] exist in ImageEn?

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 30 2022 : 21:47:39
Hi

In the current update, fill will make all colored pixels fully opaque.

You can change this effect by setting: ImageEnView1.FillTool.ColorFillAlpha
-1 will prevent any change to alpha values. 255 is the default.

Nigel
Xequte Software
www.imageen.com