freeimage.h
FreeImage_AllocateEx
1 4 8 16 24 32
DLL_API FIBITMAP *DLL_CALLCONV FreeImage_AllocateEx(int width, int height, int bpp, const RGBQUAD *color, int options, const RGBQUAD *palette, unsigned red_mask FI_DEFAULT(0), unsigned green_mask FI_DEFAULT(0), unsigned blue_mask FI_DEFAULT(0));
Crea una nueva imagen de la anchura (width), altura (height) y profundidad de bits (bpp) especificados y opcionalmente la rellena con el color indicado.
FreeImage_AllocateEx es un alias para FreeImage_AllocateExT y puede ser reemplazado por esta llamada:
FreeImage_AllocateExtT(FIT_BITMAP, width, height, bpp, color, options, palette, red_mask, green_mask, blue_mask);