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
 SelectNonAlpha is not working as expected

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
yogiyang Posted - Nov 26 2018 : 06:00:12
Hello,

After a bit of experimentaion we have come to know that SelectNonAlpha is not working as expected or is not working as it works in image editing software like Photoshop and Affinity Photo.

Here is the image as captured from Photoshop:


Here is the image as captured from ImageEn in which selection is created using SelectNonAlpha:


Are there any possibilities of solving this?

TIA


Yogi Yang
2   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Nov 27 2018 : 01:31:21
Hello Nigel,

Thanks for the clarification.

Regards,


Yogi Yang
xequte Posted - Nov 26 2018 : 22:51:22
Hi Yogi

SelectNonAlpha works as follows: Pixels of Alpha value 0 will be unselected, 255 will be selected, and 1 - 254 partially selected.

So looking at the selection in the second image, it looks correct at face value. You would expect all the gray area to be partially alpha, so ImageEn has made them partially selected. The selection area shows the complete selection (including only partially selected values).

Looking at the selection image you have taken from PhotoShop. It appears they have not selected some of the high alpha value pixels. Perhaps they use a cut off value?

Nigel
Xequte Software
www.imageen.com