469,639 Members | 1,577 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,639 developers. It's quick & easy.

creating dynamic transparent image

Hey

ASP.NET 2.0

I'm wondering if it's possible to create dynamic transparent images in
asp.net 2.0?

This is some code (see below) from my web project. In this code below I
create a Graphics object and fill it with a background color. But I want to
change this so this Graphics object gets transparent...

Bitmap bitmap = new Bitmap(120, 30);
Graphics graphics = Graphics.FromImage(bitmap);
graphics.SmoothingMode = SmoothingMode.AntiAlias;
graphics.Clear(Color.FromArgb(255, 247, 246, 243));

Any ideas on how to create a transparent Graphics object (the background is
transparent) is very welcome!

Jeff
Nov 6 '06 #1
1 1799
I guess the best advice you can get from this newsgroup is to re-post your
question to
microsoft.public.dotnet.framework.drawing
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:eT**************@TK2MSFTNGP04.phx.gbl...
Hey

ASP.NET 2.0

I'm wondering if it's possible to create dynamic transparent images in
asp.net 2.0?

This is some code (see below) from my web project. In this code below I
create a Graphics object and fill it with a background color. But I want
to change this so this Graphics object gets transparent...

Bitmap bitmap = new Bitmap(120, 30);
Graphics graphics = Graphics.FromImage(bitmap);
graphics.SmoothingMode = SmoothingMode.AntiAlias;
graphics.Clear(Color.FromArgb(255, 247, 246, 243));

Any ideas on how to create a transparent Graphics object (the background
is transparent) is very welcome!

Jeff

Nov 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Craig Storey | last post: by
2 posts views Thread by Fearless Freep | last post: by
7 posts views Thread by jhomp ssens | last post: by
1 post views Thread by Chris Tremblay | last post: by
3 posts views Thread by kaczmar2 | last post: by
9 posts views Thread by Chuck Anderson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.