Groups | Blog | Home
all groups > c# > april 2006 >

c# : drawing alpha-blended images


David
4/21/2006 11:16:18 PM
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)

Kenan Kilictepe
4/22/2006 1:10:30 AM
"Using a Color Matrix to Set Alpha Values in Images". article may help
maybe.

[quoted text, click to view]

David
4/22/2006 2:05:00 AM
no... it's somthing else
the alpha "color-matrix" set in image itself
(i read it before)

[quoted text, click to view]

AddThis Social Bookmark Button