|
Draw a circle and a pie using GDI+ drawing commands.
[Visual Basic]
Dim pn As New Pen(Color.DarkGoldenrod, 8)
gr.SmoothingMode = SmoothingMode.AntiAlias
gr.DrawEllipse(pn, 10, 25, 125, 125)
pn.Color = Color.SteelBlue
gr.DrawPie(pn, 10, 25, 125, 125, 45, 120)
[C#]
Pen pn = new Pen(Color.DarkGoldenrod, 8);
gr.SmoothingMode = SmoothingMode.AntiAlias;
gr.DrawEllipse(pn, 10, 25, 125, 125);
pn.Color = Color.SteelBlue;
gr.DrawPie(pn, 10, 25, 125, 125, 45, 120);
|
|
|