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
 Problem with layer transparency
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Krishley

11 Posts

Posted - Feb 23 2013 :  11:48:02  Show Profile  Reply
Hello,
I’m trying to do vignette effect with ImageEn but I’m getting a small problem. Ok so I have my image loaded in the control. The vignette is actually a separate PNG file (See Image 1).

I use ImageEnX1.LayersAdd3 PathToPNGFile to add the vignette as a layer over the image. So far everything works ok (See image 2).

The problem arises when I set the transparency of the vignette layer to a value lower than 255. It does not work correctly and a circle shape appears around the image (See image 3).

If I open the image in PhotoShop, add the vignette layer and set its transparency to say 70%, everything looks ok. (See image 4)

So you can see the difference. How can I get rid of that circular shape and make the transparency “smooth”?




Thanks,
Krishley

fab

1310 Posts

Posted - Mar 01 2013 :  00:43:49  Show Profile  Reply
Please post the actual code you are using and if possible the same two PNG, so I can test them.
Go to Top of Page

Krishley

11 Posts

Posted - Mar 01 2013 :  07:37:36  Show Profile  Reply
Hi Fabrizio,
Thanks for your reply. Can you please give me your email address, i will send you a sample project with all the required files.

Thanks,
Krishley
Go to Top of Page

xequte

39142 Posts

Posted - Mar 03 2013 :  11:57:17  Show Profile  Reply
Hi

Please send it to us at sales@xequte.com



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

fab

1310 Posts

Posted - Mar 18 2013 :  03:57:15  Show Profile  Reply
Hi,
due the algorithm used to merge transparency with image alpha channel, this artifact cannot be avoided.
Next minor version of ImageEn and IEvolution will use a better alpha blending algorithm that will solve this problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: