C# 클래스 Alexandria.Engines.Sciagi.Resources.PictureCanvas

Manages the four rasters of an SCI game.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 메소드들

메소드 설명
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