FIBITMAP *FreeImage_Allocate(int width, int height, int bpp, int red_mask = 0, int green_mask = 0, int blue_mask = 0);
Allocates a new FreeImage bitmap using the given width, height and bits per pixel and optional red, green and blue mask. The mask is stored in BGR order.
void FreeImage_Free(FIBITMAP *dib);
Disposes the given bitmap from memory.
void FreeImage_Unload(FIBITMAP *dib);
Alias for FreeImage_Free.