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

Manages the four rasters of an SCI game.
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( byte visualValue = 15, byte priorityValue, byte controlValue, byte auxiliaryValue, PictureLayer mask = PictureLayer.All ) : void

Clear all of the layers to their default values (by default), or specific layers with specific values if desired. This locks, then unlocks the bitmaps.

GetRaster ( PictureLayer layer ) : Raster

Get a raster layer.

Lock ( ) : void

Lock all the raster images to start drawing to them.

PictureCanvas ( Picture picture ) : System

Create a new PictureCanvas using the Picture's dimensions, and using the Picture's Palette, if any.

PictureCanvas ( Vector2i resolution, Palette palette = null ) : System

Initialise the canvas.

PictureCanvas ( int width, int height ) : System

Initialise the canvas.

Unlock ( ) : void

Unlock all the raster images, flushing their changes.

Method Details

Clear() public méthode

Clear all of the layers to their default values (by default), or specific layers with specific values if desired. This locks, then unlocks the bitmaps.
public Clear ( byte visualValue = 15, byte priorityValue, byte controlValue, byte auxiliaryValue, PictureLayer mask = PictureLayer.All ) : void
visualValue byte What to clear the visual map to if Layer.Visual is included in mask.
priorityValue byte What to clear the priority map to if Layer.Priority is included in mask.
controlValue byte What to clear the control map to if Layer.Control is included in mask.
auxiliaryValue byte What to clear the auxiliary map to if Layer.Auxiliary is included in mask.
mask PictureLayer
Résultat void

GetRaster() public méthode

Get a raster layer.
public GetRaster ( PictureLayer layer ) : Raster
layer PictureLayer
Résultat Raster

Lock() public méthode

Lock all the raster images to start drawing to them.
public Lock ( ) : void
Résultat void

PictureCanvas() public méthode

Create a new PictureCanvas using the Picture's dimensions, and using the Picture's Palette, if any.
public PictureCanvas ( Picture picture ) : System
picture Picture
Résultat System

PictureCanvas() public méthode

Initialise the canvas.
public PictureCanvas ( Vector2i resolution, Palette palette = null ) : System
resolution Vector2i
palette Palette
Résultat System

PictureCanvas() public méthode

Initialise the canvas.
public PictureCanvas ( int width, int height ) : System
width int
height int
Résultat System

Unlock() public méthode

Unlock all the raster images, flushing their changes.
public Unlock ( ) : void
Résultat void