drawing alpha-blended images

D

David

Hello...

i want to draw on my form PNG file with alpha-blended transparency.
so i use this code:

Graphics canvas = e.Graphics;

Image Image = Image.FromFile(@".\Dragon.png");

canvas.DrawImage(Image, 0, 0, Image.Size.Width, Image.Size.Height);



the problem is, what alpha-blending do not work, and i can't find any useful
examples...

..net 2.0, C#



thanx)
 
K

Kenan Kilictepe

"Using a Color Matrix to Set Alpha Values in Images". article may help
maybe.
 
D

David

no... it's somthing else
the alpha "color-matrix" set in image itself
(i read it before)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top