C# Class Alexandria.Engines.Sciagi.Resources.PictureRenderer

Deals with rendering for a Picture.
Show file Open project: Burton-Radons/Alexandria Class Usage Examples

Public Properties

Property Type Description
Canvas PictureCanvas
DitherPalette byte[]
DrawVisual bool
PatternCircles byte[][]
PatternFlags PicturePatternFlags
PatternNumber byte
PatternTextureOffsets byte[]
PatternTextures byte[]
Position Vector2i

Public Methods

Method Description
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.

Method Details

DrawCel() public method

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
return void

DrawFloodfill() public method

Draw a floodfill.
public DrawFloodfill ( Vector2i at ) : void
at Vector2i
return void

DrawImage() public method

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
return void

DrawLineTo() public method

Draw a line from the current position to the end position.
public DrawLineTo ( Vector2i end ) : void
end Vector2i
return void

DrawMoveTo() public method

Change the current position.
public DrawMoveTo ( Vector2i position ) : void
position Vector2i
return void

DrawPatternAt() public method

Draw a pattern.
public DrawPatternAt ( Vector2i position ) : void
position Vector2i
return void

DrawPixel() public method

Draw a single pixel.
public DrawPixel ( Vector2i at ) : void
at Vector2i
return void

DrawPixel() public method

Draw a single pixel.
public DrawPixel ( int x, int y ) : void
x int
y int
return void

PictureRenderer() public method

Initialise the renderer.
public PictureRenderer ( PictureCanvas canvas ) : System
canvas PictureCanvas
return System

Render() public method

Draw the instructions.
public Render ( ICollection instructions ) : void
instructions ICollection
return void

Render() public method

Draw a set of instructions.
public Render ( IEnumerable instructions, int count ) : void
instructions IEnumerable
count int
return void

Property Details

Canvas public property

Get the drawing canvas.
public PictureCanvas,Alexandria.Engines.Sciagi.Resources Canvas
return PictureCanvas

DitherPalette public property

Get the dithering palette.
public byte[] DitherPalette
return byte[]

DrawVisual public property

Get or set whether to draw to the different rasters.
public bool DrawVisual
return bool

PatternCircles public static property

Contains patterns for circles.
public static byte[][] PatternCircles
return byte[][]

PatternFlags public property

Get the drawing pattern flags.
public PicturePatternFlags PatternFlags
return PicturePatternFlags

PatternNumber public property

Get the drawing pattern number.
public byte PatternNumber
return byte

PatternTextureOffsets public static property

Contains offsets for texture patterns.
public static byte[] PatternTextureOffsets
return byte[]

PatternTextures public static property

Contains texture patterns.
public static byte[] PatternTextures
return byte[]

Position public property

Get the drawing positions.
public Vector2i Position
return Vector2i