try this,
bmp=new Bitmap(Width,Height);
g=Graphics.FromImage(bmp);
g.DrawEllipse(Pens.Red, new Rectangle(0, 0, 100, 100));
g.Save();
bmp.Save(filename,System.Drawing.Imaging.ImageForm at.Gif);
HTH,
Nanda
-----Original Message-----
Hi there.
I want to draw a Ellipse and stored into gif or png. How
can i do that?
Form1_Load(object sender, EventArgs e)
{
....
g.DrawEllipse(Pens.Red, new Rectangle(0, 0, 100, 100));
// how to store that Ellipse into gif or png?
....
}
Any idea? Is it possible for me to store the the Ellipse
(only that) with transparency.
Any help?
Regards,
Chua Wen Ching :p
.