C# Класс SpaceSim.Drawing.RenderUtils

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ScreenArea int
ScreenHeight int
ScreenWidth int

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

Метод Описание
ComputeBoundingBox ( DVector2 position, RectangleD cameraBounds, double width, double height ) : RectangleF
ComputeEllipseSize ( DVector2 position, RectangleD cameraBounds, double radius ) : RectangleF
DrawLine ( Graphics graphics, RectangleD cameraBounds, DVector2 start, DVector2 end, Color color ) : void
DrawRectangles ( Graphics graphics, List rectangles, Color color ) : void
GetContext ( bool highQuality, Bitmap source ) : Graphics
WorldToScreen ( DVector2 point, RectangleD cameraBounds ) : PointF

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

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

public static ComputeBoundingBox ( DVector2 position, RectangleD cameraBounds, double width, double height ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
width double
height double
Результат System.Drawing.RectangleF

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

public static ComputeEllipseSize ( DVector2 position, RectangleD cameraBounds, double radius ) : RectangleF
position VectorMath.DVector2
cameraBounds VectorMath.RectangleD
radius double
Результат System.Drawing.RectangleF

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

public static DrawLine ( Graphics graphics, RectangleD cameraBounds, DVector2 start, DVector2 end, Color color ) : void
graphics System.Drawing.Graphics
cameraBounds VectorMath.RectangleD
start VectorMath.DVector2
end VectorMath.DVector2
color System.Drawing.Color
Результат void

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

public static DrawRectangles ( Graphics graphics, List rectangles, Color color ) : void
graphics System.Drawing.Graphics
rectangles List
color System.Drawing.Color
Результат void

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

public static GetContext ( bool highQuality, Bitmap source ) : Graphics
highQuality bool
source System.Drawing.Bitmap
Результат System.Drawing.Graphics

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

public static WorldToScreen ( DVector2 point, RectangleD cameraBounds ) : PointF
point VectorMath.DVector2
cameraBounds VectorMath.RectangleD
Результат System.Drawing.PointF

Описание свойств

ScreenArea публичное статическое свойство

public static int ScreenArea
Результат int

ScreenHeight публичное статическое свойство

public static int ScreenHeight
Результат int

ScreenWidth публичное статическое свойство

public static int ScreenWidth
Результат int