Creates a blank for loading.
Creates a new bitmap from supplied data.
Mostly used during construction of new instances and version changing.
Stores compression type identificator.
Saves the image into the given file. Only uncompressed bitmaps are supported currently.
Loads an image from a file. Only uncompressed and 8bit RLE are supported.
Defines later versions of the file
Defines Windows 1.x files
Windows 1.x header
Bitmap header for Win 2.x
Bitmap header for Win 3.x and 4.x
Bitmap header extension for Win 4.x
Header used in later versions
Bitmap header extension for WinNT
Null if Win1x
Contains palette data and information
Contains image data and information.
used for fast access of indexes DEPRECATED!
used for fast access of indexes DEPRECATED!
Returns the width of the image in pixels.
Returns the height of the image in pixels.
Returns true if the image is indexed.
Returns the number of bits used per sample.
Returns the number of bits used per colormap entry.
Returns the pixelformat of the image. See enumerator PixelFormat for more info.
Returns the pixelformat of the palette. See enumerator PixelFormat for more info.
Returns the background color index if there's any. Returns -1 if there's no background color, -2 if background color is not indexed.
Returns the background color if there's any, or a default value otherwise.
Returns the number of planes the image have. Default is one.
Returns a palette range, which can be used to read the palette.
Returns the image data.
Reads a single 32bit pixel. If the image is indexed, a color lookup will be done.
Looks up the index on the palette, then returns the color value as a 32 bit value.
Flips the image on the vertical axis. Useful to set images to the correct top-left screen origin point.
Flips the image on the vertical axis. Useful to set images to the correct top-left screen origin point.
Returns true if the image originates from the top
Returns true if the image originates from the right
Implements *.BMP file handling.