Problem about pictureBox in Visual Studio C Sharp.NET ?

I am designing a paint brush type program


  • solution is here like as:
    [code][/code]Bitmap bmp = new Bitmap(pictureBox2.Width, pictureBox2.Height);
    Graphics g = Graphics.FromImage(bmp);
    Pen p = new Pen(Color.Red, 5);
    g.DrawEllipse(p, e.X, e.Y, 5, 7);
    pictureBox2.Image = bmp;[code][/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion