alijunior
asked on
How to draw a tranparent png image at Canvas?
Hello,
I need to draw a PNG image on Canvas. Now I'm saving the image as a BMP and tranparent drawing works. But some PNG images have parts (like shadows on image) that merges with background. in PhotoImpact, I fill the backgroung with some color and the shadow become a real shadow, meging with background color. but on BMPs this don't happen. The mask color become transparent, but shadow part don't.
I need draw the PNG image on Canvas respecting the PNG instructions of transparency, like shadows need to work.
One example of an PNG of my example can be downloaded at: http://entropymine.com/jason/testbed/pngtrans/rgba8_bk.png
Regards.
I need to draw a PNG image on Canvas. Now I'm saving the image as a BMP and tranparent drawing works. But some PNG images have parts (like shadows on image) that merges with background. in PhotoImpact, I fill the backgroung with some color and the shadow become a real shadow, meging with background color. but on BMPs this don't happen. The mask color become transparent, but shadow part don't.
I need draw the PNG image on Canvas respecting the PNG instructions of transparency, like shadows need to work.
One example of an PNG of my example can be downloaded at: http://entropymine.com/jason/testbed/pngtrans/rgba8_bk.png
Regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was exactly what I need. I search but not found it before...
Thanks a lot!
Best regards.