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
 ImageEnVect.Proc.FeatherAlphaEdges question

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
klausdoege Posted - Aug 29 2018 : 09:20:26
Hi,
when i use
ImageEnVect.Proc.FeatherAlphaEdges(5);
ImageEnVect.Update;


Then all works fine.
But when i use

ImageEnVect.Select(0, 0, 50, 150);
ImageEnVect.Proc.CropSel();
ImageEnVect.Proc.FeatherAlphaEdges(5);
ImageEnVect.Update;


Then i see no effect, the picture view
is the same as befor

ImageEnVect.Proc.FeatherAlphaEdges(5);


What make i false ?

Klaus
www.klausdoege.de
2   L A T E S T    R E P L I E S    (Newest First)
klausdoege Posted - Aug 31 2018 : 03:04:53
Hi Nigel,
yes this line,
ImageEnView1.IEBitmap.AlphaChannel; // Ensure image has alpha channel
was the right tip.
Thank you

Klaus
www.klausdoege.de
xequte Posted - Aug 30 2018 : 16:37:31
Hi Klaus

Are you sure the image has an alpha channel?

Try this (after cropping):

// Feather edges of an image
ImageEnView1.IEBitmap.AlphaChannel; // Ensure image has alpha channel
ImageEnView1.IEBitmap.Resize(1, 1, 1, 1, clWhite, 0); // Add a alpha border
ImageEnView1.Proc.FeatherAlphaEdges(10);


Nigel
Xequte Software
www.imageen.com