Click or drag to resize
ExtensionMethodsDrawCircle Method
Distributed Algorithm Simulator
Draws a circle using given parameters on a Graphics object.

Namespace: DistributedAlgorithmSimulator
Assembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void DrawCircle(
	this Graphics g,
	Pen pen,
	float centerX,
	float centerY,
	float radius
)

Parameters

g
Type: System.DrawingGraphics
Graphics object
pen
Type: System.DrawingPen
Pen to draw with
centerX
Type: SystemSingle
Circle center X-coordinate
centerY
Type: SystemSingle
Circle center Y-coordinate
radius
Type: SystemSingle
Circle radius

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Graphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also