472,118 Members | 1,216 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

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 1843
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.