C# Класс FootballSimulationApp.GraphicsExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
DrawCircle ( this g, Pen pen, System.Numerics.Vector2 center, float radius ) : void

Draws a circle defined by a center point and the radius.

DrawEllipse ( this g, Pen pen, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void

Draws an ellipse defined by a center point and the radius on the x and y axes.

DrawLine ( this g, Pen pen, System.Numerics.Vector2 pt1, System.Numerics.Vector2 pt2 ) : void

Draws a line connecting two points specified by the vectors.

DrawRectangle ( this g, Pen pen, RectangleF rect ) : void

Draws a rectangle.

FillCircle ( this g, Brush brush, System.Numerics.Vector2 center, float radius ) : void

Fills the interior of a circle defined by a center point and the radius.

FillEllipse ( this g, Brush brush, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void

Fills the interior of an ellipse defined by a center point and the radius on the x and y axes.

Описание методов

DrawCircle() публичный статический Метод

Draws a circle defined by a center point and the radius.
public static DrawCircle ( this g, Pen pen, System.Numerics.Vector2 center, float radius ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the circle.
center System.Numerics.Vector2 The center point of the circle.
radius float The radius of the circle.
Результат void

DrawEllipse() публичный статический Метод

Draws an ellipse defined by a center point and the radius on the x and y axes.
public static DrawEllipse ( this g, Pen pen, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the ellipse.
center System.Numerics.Vector2 The center point of the ellipse.
radiusX float The radius on the x axis.
radiusY float The radius on the y axis.
Результат void

DrawLine() публичный статический Метод

Draws a line connecting two points specified by the vectors.
public static DrawLine ( this g, Pen pen, System.Numerics.Vector2 pt1, System.Numerics.Vector2 pt2 ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the line.
pt1 System.Numerics.Vector2 The first point.
pt2 System.Numerics.Vector2 The second point.
Результат void

DrawRectangle() публичный статический Метод

Draws a rectangle.
public static DrawRectangle ( this g, Pen pen, RectangleF rect ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the rectangle.
rect System.Drawing.RectangleF
Результат void

FillCircle() публичный статический Метод

Fills the interior of a circle defined by a center point and the radius.
public static FillCircle ( this g, Brush brush, System.Numerics.Vector2 center, float radius ) : void
g this The drawing surface.
brush System.Drawing.Brush Brush that determines the characteristics of the fill.
center System.Numerics.Vector2 The center point of the circle.
radius float The radius of the circle.
Результат void

FillEllipse() публичный статический Метод

Fills the interior of an ellipse defined by a center point and the radius on the x and y axes.
public static FillEllipse ( this g, Brush brush, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void
g this The drawing surface.
brush System.Drawing.Brush Brush that determines the characteristics of the fill.
center System.Numerics.Vector2 The center point of the ellipse.
radiusX float The radius on the x axis.
radiusY float The radius on the y axis.
Результат void