The bellow code is used to draw a Ellipse shape
System.Drawing.SolidBrush MyBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red); System.Drawing.Graphics MyFormGraphics = this.CreateGraphics(); MyFormGraphics.FillEllipse(MyBrush, new Rectangle(0,0,200,300)); MyBrush.Dispose(); MyFormGraphics.Dispose();
The following code is used to draw a rectangle
System.Drawing.SolidBrush MyBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Green); System.Drawing.Graphics MyFormGraphics = this.CreateGraphics(); MyFormGraphics.FillRectangle(MyBrush, new Rectangle(0,0,200,300)); MyBrush.Dispose(); MyFormGraphics.Dispose();
By Nathan
|
No responses found. Be the first to respond and make money from revenue sharing program.
|