FreeImage_AllocateT is available since version 1.0.
Prototype:
number FreeImage_AllocateT(number type, number width, number height, number bpp, number red_mask, number green_mask, number blue_mask)
Description:
While most imaging applications only deal with photographic images, many scientific applications need to deal with high resolution images (e.g. 16-bit greyscale images), with real valued pixels or even with complex pixels (think for example about the result of a Fast Fourier Transform applied to a 8-bit greyscale image: the result is a complex image).
A special parameter, an enum named FREE_IMAGE_TYPE, is used to specify the bitmap type of a FIBITMAP.
Return value:
Returns a new image handle if succeeded, or null if failed.