|
|
[C#]
XRect DrawOval(double inWidth, double inHeight, DrawOptions inOptions);
XRect DrawOval(XRect inRect, DrawOptions inOptions);
[Visual Basic]
Function DrawOval(inWidth As Double, inHeight As Double, inOptions As DrawOptions) As XRect
Function DrawOval(inRect As XRect, inOptions As DrawOptions) As XRect
|
|
|
|
Here we paint and draw a red oval.
[C#]
Canvas canvas = new Canvas(250, 250);
canvas.PaintColor = new XColor(Color.Red);
canvas.PenColor = new XColor(Color.Red);
canvas.DrawOval(new XRect(25, 25, 200, 200), new DrawOptions(canvas));
canvas.SaveAs(Server.MapPath("Canvas_DrawOval_90.png"));
[Visual Basic]
Dim canvas As New Canvas(250, 250)
canvas.PaintColor = New XColor(Color.Red)
canvas.PenColor = New XColor(Color.Red)
canvas.DrawOval(New XRect(25, 25, 200, 200), New DrawOptions(canvas))
canvas.SaveAs(Server.MapPath("Canvas_DrawOval_90.png"))
Canvas_DrawOval_90.png
|