By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,247 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,247 IT Pros & Developers. It's quick & easy.

drawing alpha-blended images

P: n/a
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)
Apr 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Using a Color Matrix to Set Alpha Values in Images". article may help
maybe.

"David" <da*******@hotmail.com> wrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
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)

Apr 21 '06 #2

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

"Kenan Kilictepe" <ke***@kilictepe.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Using a Color Matrix to Set Alpha Values in Images". article may help
maybe.

Apr 21 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.