Creates a new width x height bitmap with a specified bit depth.
Creates a new width x height bitmap with a specified bit depth containing pixel data.
A destructor is present on this object, but not explicitly documented in the source.
Copies the bitmap and creates a new bitmap in the given pixelformat.
Deallocates the memory and invalidates this.
Fills the entire bitmap with one color.
Fills a rectangle with one color.
Gets the RGB color at position x, y. (0, 0) is top left.
Gets the RGBA color at position x, y as R, G, B, A ubyte array. (0, 0) is top left.
Gets the rgb hex from the color based on the bitmap format.
Gets the rgb hex from the color based on the bitmap format.
Saves the bitmap to a .bmp file.
Sets the RGB color at position x, y. (0, 0) is top left.
Sets the RGBA color at position x, y. (0, 0) is top left.
Height of this bitmap. Returns 0 if invalid.
Handle to the SDL_Surface*.
Checks if the handle is not null.
Width of this bitmap. Returns 0 if invalid.
Creates a bitmap from a SDL_Surface*.
Loads a png/webp/tiff/bmp from a file on the filesystem.
Thin wrap around SDL_Surface including loading [png, webp, tiff, bmp] using SDL_Image.