Creates an empty bitmap.
Creates a bitmap from an array.
Creates an empty bitmap.
Creates a bitmap from an array.
Creates an empty bitmap.
Creates a bitmap from an array.
Creates an empty bitmap.
Creates a bitmap from an array.
Offsets all indexes in the bitmap by a certain value. Keeps zeroth index (usually for transparency) if needed. Useful when converting bitmaps.
Returns the pixel at the given position.
Returns the pixel at the given position.
Resizes the bitmap. NOTE: It's not for scaling.
Resizes the array behind the bitmap.
Writes the pixel at the given position.
Writes the pixel at the given position.
Returns the width of the bitmap.
Returns the height of the bitmap.
Returns the palette pointer.
Sets the palette pointer. Make sure that you set it to a valid memory location.
Returns the wordlength of the type
Clears the whole bitmap to a transparent color.
Implements a bitmap with variable bit depth. Use the aliases to initialize them. Note for 16Bit bitmap: It's using the master palette, It's not implementing any 16 bit RGB or RGBA color space directly. Can implement such colorspaces via proper lookup tables. Note for 4Bit bitmap: It's width needs to be an even number (for rendering simplicity), otherwise it'll cause an exception.