Ring Of Light

If i wanted to create a circle of light say 700 p hight and 700p wide, the center of the ring would be transparent and so would everything on the outer side of the ring...

How could i do this?
Who is Participating?
ozymandiasConnect With a Mentor Commented:
Very basic example :

using System;
using System.Drawing;

namespace Drawing1
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
            static void Main(string[] args)
                  Bitmap b = new Bitmap(710,710);
                  Graphics g = Graphics.FromImage(b);
                  g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
                  g.DrawEllipse(new Pen(Brushes.White, 6f), 5 , 5, 700, 700);
                  b.Save(new System.IO.FileStream(@"c:\temp\lightring.gif",System.IO.FileMode.Create), System.Drawing.Imaging.ImageFormat.Gif);      
Mike TomlinsonMiddle School Assistant TeacherCommented:
Like making an irregular shaped form the shape of a Music CD?
schenkpAuthor Commented:
Yes....it to be touching the outer edges of a sqaure form, like a box with the ring around it.
This gives you a 710 x 710 transparent gif in the middle of which is a 700 diameter white circle.
schenkpAuthor Commented:
How do i use this as a class?  Or rather how can i put it into a test project.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.