Constructor by image size and image type.
Constructor by image size and bpp.
Returns the size of one pixel in the bitmap in bits. For example when each pixel takes 32-bits of space in the bitmap, this function returns 32. Possible bit depths are 1, 4, 8, 16, 24, 32 for standard bitmaps and 16-, 32-, 48-, 64-, 96- and 128-bit for non standard bitmaps.
Returns how many channels the image has. This is calculated by (bpp) / (1 channel bits). 1 channel bits is estimated by image type.
Returns the raw image data as T[].
Returns the height of the bitmap in pixel units.
Returns the type of the image.
Returns the raw pointer to the image data for low level API.
Save the image. The extension is estimated by the output path.
Save the image as bmp.
Save the image as exr.
Save the image as j2k.
Save the image as jp2.
Save the image as jpeg.
Save the image as pbm.
Save the image as pgm.
Save the image as png.
Save the image as ppm.
Save the image as tiff.
Converts a bitmap to 32 bits. A clone of the input bitmap is returned for 32-bit bitmaps. For 48-bit RGB images, conversion is done by dividing each 16-bit channel by 256 and by setting the alpha channel to an opaque value (0xFF). For 64-bit RGBA images, conversion is done by dividing each 16-bit channel by 256. A NULL value is returned for other nonstandard bitmap types.
Returns the width of the bitmap in pixel units.
Load image. This function is same as ImageLoader.load.
Class represented FIBITMAP.