Property | Type | Description | |
---|---|---|---|
BlendColorIndex | int | ||
DirtyAll | void | ||
DirtyArea | void | ||
DirtyPoint | void | ||
DrawFillAddToStackUnsafe | void | ||
DrawPixelUnsafe | void | ||
DrawPixelUnsafe | void | ||
Flush | void | ||
PointerTo | int | ||
PointerTo | int | ||
ProcessColor | int | ||
SetupDrawImage | void |
Method | Description | |
---|---|---|
BlendColorIndex ( int a, int b, int colorCount ) : int |
Get the blend colour index in a blended palette.
|
|
BlendPalette ( IList |
Create a blended palette, which blends colors from the perspective of either A and B or B and A, but unevenly (unless if blend is
|
|
Clamp ( Vector2i value ) : Vector2i |
Clamp the value so that it is within the bounds of the Raster.
|
|
ClampX ( int value ) : int |
Clamp the X coordinate to be within the bounds of the Raster.
|
|
ClampY ( int value ) : int |
Clamp the Y coordinate to be within the bounds of the Raster.
|
|
Clear ( int value ) : void |
Clear the raster to a given index.
|
|
ColorAt ( Vector2i position ) : int |
Get the colour index that will be used with dithering at the given position.
|
|
ColorAt ( int x, int y ) : int |
Get the colour index that will be used with dithering at the given position.
|
|
Contains ( Vector2i position ) : bool |
Get whehter the coordinates are within the Raster.
|
|
Contains ( int x, int y ) : bool |
Get whether the coordinates are within the Raster.
|
|
ContainsX ( int value ) : bool |
Get whether the Raster contains this X coordinate.
|
|
ContainsY ( int value ) : bool |
Get whether the Raster contains this Y coordinate.
|
|
DrawFillSci ( Vector2i at ) : void |
Floodfill drawing in such a way that specifically emulates SCI. Its logical cannot be changed without breaking things.
|
|
DrawFillSci ( Vector2i at, int matchColor ) : void |
Perform a flood-fill in a way that Sierra's SCI engine does it.
|
|
DrawHorizontalLine ( int sx, int y, int ex ) : void |
Draw a horizontal line.
|
|
DrawImage ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void |
Draw the image data.
|
|
DrawImageSilhouette ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void |
Draw the image data, using the currently assigned color indices for any non-transparent parts of the image.
|
|
DrawLineSci ( Vector2i a, Vector2i b ) : void |
Draw a line using Sierra SCI's algorithm
|
|
DrawLineSci ( int sx, int sy, int ex, int ey ) : void |
Draw a line using SCI-specific logic. Changing this logic in any way will break images.
|
|
DrawPixel ( Vector2i position ) : void |
Draw a pixel in the Raster.
|
|
DrawPixel ( int x, int y ) : void |
Draw a pixel, if it's within the clipping range.
|
|
DrawVerticalLine ( int x, int sy, int ey ) : void |
Draw a vertical line.
|
|
GetPixel ( Vector2i position, int defaultValue ) : int |
Get the index at a position, or return the default value if the position is out of range.
|
|
Lock ( ) : void |
Start drawing to the bitmap.
|
|
Raster ( Vector2i size, IList |
Initialize the Raster.
|
|
Raster ( int width, int height, IList |
Initialize the Raster.
|
|
SetColor ( int color ) : void |
Set the colour index to write.
|
|
SetColor ( int colorA, int colorB ) : void |
Set a dithered colour index to write.
|
|
Unlock ( ) : void |
Stop drawing to the bitmap, flushing the changes.
|
Method | Description | |
---|---|---|
BlendColorIndex ( int a, int b ) : int | ||
DirtyAll ( ) : void | ||
DirtyArea ( int minX, int minY, int maxX, int maxY ) : void | ||
DirtyPoint ( int x, int y ) : void |
Ensure the point is within the dirty rectangle.
|
|
DrawFillAddToStackUnsafe ( Stack |
||
DrawPixelUnsafe ( Vector2i position ) : void | ||
DrawPixelUnsafe ( int x, int y ) : void |
Draw a pixel without first checking whether it's within bounds.
|
|
Flush ( ) : void |
Add the dirtied rectangle to the bitmap, then clear the dirtied area.
|
|
PointerTo ( Vector2i position ) : int | ||
PointerTo ( int x, int y ) : int | ||
ProcessColor ( int value ) : int | ||
SetupDrawImage ( Vector2i &position, Vector2i &size, int &data, int &offset, int &pitch ) : void |
public static BlendColorIndex ( int a, int b, int colorCount ) : int | ||
a | int | |
b | int | |
colorCount | int | |
return | int |
public static BlendPalette ( IList |
||
original | IList |
The original set of colours. |
blend | double | The blending between colours used in a combination. Making this a value other than 0.5 puts more variety into the dithering. |
return | Codex |
public DrawFillSci ( Vector2i at, int matchColor ) : void | ||
at | Vector2i | |
matchColor | int | |
return | void |
public DrawHorizontalLine ( int sx, int y, int ex ) : void | ||
sx | int | |
y | int | |
ex | int | |
return | void |
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 |
public DrawImageSilhouette ( 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 |
public DrawLineSci ( Vector2i a, Vector2i b ) : void | ||
a | Vector2i | |
b | Vector2i | |
return | void |
public DrawLineSci ( int sx, int sy, int ex, int ey ) : void | ||
sx | int | |
sy | int | |
ex | int | |
ey | int | |
return | void |
public DrawPixel ( Vector2i position ) : void | ||
position | Vector2i | |
return | void |
public DrawVerticalLine ( int x, int sy, int ey ) : void | ||
x | int | |
sy | int | |
ey | int | |
return | void |
public GetPixel ( Vector2i position, int defaultValue ) : int | ||
position | Vector2i | |
defaultValue | int | The default value to return if th position is out of range. |
return | int |
public Raster ( Vector2i size, IList |
||
size | Vector2i | The dimensions of the raster image. |
palette | IList |
The palette to use for colours. This may be a regular palette or a colour blend palette. |
colorBlend | int | If non-negative this is the number of colours in the base palette for a colour-blended palette. |
sourceData | byte | |
return | System |
public Raster ( int width, int height, IList |
||
width | int | The width in pixels of the raster image. |
height | int | The height in pixels of the raster image. |
palette | IList |
The palette to use for colours. This may be a regular palette or a colour blend palette. |
colorBlendBaseCount | int | If non-negative this is the number of colours in the base palette for a colour-blended palette. |
data | byte | The optional data for the raster. |
return | System |
public SetColor ( int colorA, int colorB ) : void | ||
colorA | int | |
colorB | int | |
return | void |