Метод | Описание | |
---|---|---|
Bitmap ( |
Copies an existing GBA.Bitmap or makes one from a subregion of an existing bitmap
|
|
Bitmap ( IDisplayable pixels ) : EmblemMagic.Components |
Creates a GBA.Bitmap from the given IDisplayable object
|
|
Bitmap ( int width, int height ) : EmblemMagic.Components |
Creates an empty GBA.Bitmap of the given dimensions.
|
|
Bitmap ( int width, int height, Array palette, Array data ) : EmblemMagic.Components |
Makes a bitmap from the given byte array (must in 1 byte per pixel format)
|
|
Bitmap ( string filepath, GBA.Palette palette = null ) : EmblemMagic.Components |
Makes a GBA.Bitmap from the image at the given filepath (and using the given Palette if not null)
|
|
GetColor ( int x, int y ) : GBA.Color | ||
GetPixels ( Rectangle region ) : ].Color[ |
Returns an array of pixels from the requested region of the Bitmap
|
|
IsEmpty ( ) : bool |
Tells if this is an empty Bitmap or not.
|
|
Load ( int width, int height ) : void |
Initializes the basic fields of this instance.
|
|
SetColor ( int x, int y, GBA.Color value ) : void | ||
SetPixels ( Func displayfunc, Rectangle region ) : void |
Sets the pixels in the given region of the GBA.Bitmap
|
|
ToBytes ( ) : Byte[] |
Returns the 1BPP byte array of pixels for this GBA.Bitmap
|
|
this ( int x, int y ) : int |
This indexer allows for quick access to pixel data in GBA.Color format.
|
public Bitmap ( |
||
source | ||
region | Rectangle | |
Результат | EmblemMagic.Components |
public Bitmap ( IDisplayable pixels ) : EmblemMagic.Components | ||
pixels | IDisplayable | |
Результат | EmblemMagic.Components |
public Bitmap ( int width, int height ) : EmblemMagic.Components | ||
width | int | |
height | int | |
Результат | EmblemMagic.Components |
public Bitmap ( int width, int height, Array palette, Array data ) : EmblemMagic.Components | ||
width | int | |
height | int | |
palette | Array | |
data | Array | |
Результат | EmblemMagic.Components |
public Bitmap ( string filepath, GBA.Palette palette = null ) : EmblemMagic.Components | ||
filepath | string | |
palette | GBA.Palette | |
Результат | EmblemMagic.Components |
public GetColor ( int x, int y ) : GBA.Color | ||
x | int | |
y | int | |
Результат | GBA.Color |
public GetPixels ( Rectangle region ) : ].Color[ | ||
region | Rectangle | |
Результат | ].Color[ |
public Load ( int width, int height ) : void | ||
width | int | |
height | int | |
Результат | void |
public SetColor ( int x, int y, GBA.Color value ) : void | ||
x | int | |
y | int | |
value | GBA.Color | |
Результат | void |
public SetPixels ( Func displayfunc, Rectangle region ) : void | ||
displayfunc | Func | |
region | Rectangle | |
Результат | void |