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

Manages the four rasters of an SCI game.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Clear() публичный Метод

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
Результат void

GetRaster() публичный Метод

Get a raster layer.
public GetRaster ( PictureLayer layer ) : Raster
layer PictureLayer
Результат Raster

Lock() публичный Метод

Lock all the raster images to start drawing to them.
public Lock ( ) : void
Результат void

PictureCanvas() публичный Метод

Create a new PictureCanvas using the Picture's dimensions, and using the Picture's Palette, if any.
public PictureCanvas ( Picture picture ) : System
picture Picture
Результат System

PictureCanvas() публичный Метод

Initialise the canvas.
public PictureCanvas ( Vector2i resolution, Palette palette = null ) : System
resolution Vector2i
palette Palette
Результат System

PictureCanvas() публичный Метод

Initialise the canvas.
public PictureCanvas ( int width, int height ) : System
width int
height int
Результат System

Unlock() публичный Метод

Unlock all the raster images, flushing their changes.
public Unlock ( ) : void
Результат void