Author |
Topic  |
|
Krishley

11 Posts |
Posted - Feb 23 2013 : 11:48:02
|
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
|
Please post the actual code you are using and if possible the same two PNG, so I can test them. |
 |
|
Krishley

11 Posts |
Posted - Mar 01 2013 : 07:37:36
|
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 |
 |
|
xequte
    
39142 Posts |
|
fab
   
1310 Posts |
Posted - Mar 18 2013 : 03:57:15
|
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. |
 |
|
|
Topic  |
|
|
|