C# Класс Alexandria.Engines.Sciagi.Resources.PictureRenderer

Deals with rendering for a Picture.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Canvas PictureCanvas
DitherPalette byte[]
DrawVisual bool
PatternCircles byte[][]
PatternFlags PicturePatternFlags
PatternNumber byte
PatternTextureOffsets byte[]
PatternTextures byte[]
Position Vector2i

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

Метод Описание
DrawCel ( PictureCel cel ) : void

Enable visual and priority layers, set the priority to that specified by the cel, then draw a PictureCel.

DrawFloodfill ( Vector2i at ) : void

Draw a floodfill.

DrawImage ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void

Draw an image onto the visual

DrawLineTo ( Vector2i end ) : void

Draw a line from the current position to the end position.

DrawMoveTo ( Vector2i position ) : void

Change the current position.

DrawPatternAt ( Vector2i position ) : void

Draw a pattern.

DrawPixel ( Vector2i at ) : void

Draw a single pixel.

DrawPixel ( int x, int y ) : void

Draw a single pixel.

PictureRenderer ( PictureCanvas canvas ) : System

Initialise the renderer.

Render ( ICollection instructions ) : void

Draw the instructions.

Render ( IEnumerable instructions, int count ) : void

Draw a set of instructions.

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

DrawCel() публичный метод

Enable visual and priority layers, set the priority to that specified by the cel, then draw a PictureCel.
public DrawCel ( PictureCel cel ) : void
cel PictureCel
Результат void

DrawFloodfill() публичный метод

Draw a floodfill.
public DrawFloodfill ( Vector2i at ) : void
at Vector2i
Результат void

DrawImage() публичный метод

Draw an image onto the visual
public DrawImage ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void
position Vector2i
size Vector2i
data int
offset int
pitch int
maskIndex int
Результат void

DrawLineTo() публичный метод

Draw a line from the current position to the end position.
public DrawLineTo ( Vector2i end ) : void
end Vector2i
Результат void

DrawMoveTo() публичный метод

Change the current position.
public DrawMoveTo ( Vector2i position ) : void
position Vector2i
Результат void

DrawPatternAt() публичный метод

Draw a pattern.
public DrawPatternAt ( Vector2i position ) : void
position Vector2i
Результат void

DrawPixel() публичный метод

Draw a single pixel.
public DrawPixel ( Vector2i at ) : void
at Vector2i
Результат void

DrawPixel() публичный метод

Draw a single pixel.
public DrawPixel ( int x, int y ) : void
x int
y int
Результат void

PictureRenderer() публичный метод

Initialise the renderer.
public PictureRenderer ( PictureCanvas canvas ) : System
canvas PictureCanvas
Результат System

Render() публичный метод

Draw the instructions.
public Render ( ICollection instructions ) : void
instructions ICollection
Результат void

Render() публичный метод

Draw a set of instructions.
public Render ( IEnumerable instructions, int count ) : void
instructions IEnumerable
count int
Результат void

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

Canvas публичное свойство

Get the drawing canvas.
public PictureCanvas,Alexandria.Engines.Sciagi.Resources Canvas
Результат PictureCanvas

DitherPalette публичное свойство

Get the dithering palette.
public byte[] DitherPalette
Результат byte[]

DrawVisual публичное свойство

Get or set whether to draw to the different rasters.
public bool DrawVisual
Результат bool

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

Contains patterns for circles.
public static byte[][] PatternCircles
Результат byte[][]

PatternFlags публичное свойство

Get the drawing pattern flags.
public PicturePatternFlags PatternFlags
Результат PicturePatternFlags

PatternNumber публичное свойство

Get the drawing pattern number.
public byte PatternNumber
Результат byte

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

Contains offsets for texture patterns.
public static byte[] PatternTextureOffsets
Результат byte[]

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

Contains texture patterns.
public static byte[] PatternTextures
Результат byte[]

Position публичное свойство

Get the drawing positions.
public Vector2i Position
Результат Vector2i