que tienen este código que dibuja un rectángulo (Im tratando de rehacer el MS Paint)dibujando círculos con System.Drawing
case "Rectangle":
if (tempDraw != null)
{
tempDraw = (Bitmap)snapshot.Clone();
Graphics g = Graphics.FromImage(tempDraw);
Pen myPen = new Pen(foreColor, lineWidth);
g.DrawRectangle(myPen, x1, y1, x2-x1, y2-y1);
myPen.Dispose();
e.Graphics.DrawImageUnscaled(tempDraw, 0, 0);
g.Dispose();
}
Pero lo que si quiero dibujar un círculo, lo que va a cambiar?
g.DrawRectangle(myPen, x1, y1, x2-x1, y2-y1);
thax para usted también para la respuesta – Tony