Draw Ellipse and store in gif or png file?

N

Nanda

hi,
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.ImageFormat.Gif);

HTH,
Nanda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top