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
 ImageEnVect.Proc.FeatherAlphaEdges question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 29 2018 :  09:20:26  Show Profile  Reply
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

xequte

39053 Posts

Posted - Aug 30 2018 :  16:37:31  Show Profile  Reply
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
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 31 2018 :  03:04:53  Show Profile  Reply
Hi Nigel,
yes this line,
ImageEnView1.IEBitmap.AlphaChannel; // Ensure image has alpha channel
was the right tip.
Thank you

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: