Bitmap Allocation functions

Subsections

FreeImage_Allocate

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.

FreeImage_Free

void FreeImage_Free(FIBITMAP *dib);

Disposes the given bitmap from memory.

FreeImage_Unload

void FreeImage_Unload(FIBITMAP *dib);

Alias for FreeImage_Free.