using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
public class Form1 : Form
{
private System.Windows.Forms.PictureBox picNone;
public Form1() {
InitializeComponent();
}
private void picNone_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
Pen drawingPen = new Pen(Color.Red, 5);
e.Graphics.DrawEllipse(drawingPen, 10, 10, 300, 40);
}
private void InitializeComponent()
{
this.picNone = new System.Windows.Forms.PictureBox();
this.SuspendLayout();
//
// picNone
//
this.picNone.Location = new System.Drawing.Point(8, 16);
this.picNone.Name = "picNone";
this.picNone.Size = new System.Drawing.Size(328, 64);
this.picNone.TabIndex = 0;
this.picNone.TabStop = false;
this.picNone.Paint += new System.Windows.Forms.PaintEventHandler(this.picNone_Paint);
//
// Smoothing
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(392, 382);
this.Controls.Add(this.picNone);
this.Name = "Smoothing";
this.Text = "Smoothing";
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}
}