bmap_to_format(BMAP* bmap,var format)

Converts a bmap to a given color format.

Parameters:

bmap - bitmap to be converted.
format - the target format - 565, 888, 1555, 4444, or 8888 (see bmap_lock). In  A7  also floating point textures are supported, in the following 4 formats: 12 = 16 bit floating point red, 14 = 32 bit floating point red, 12222 = 16 bit floating point ABGR, 14444 = 32 bit floating point ABGR.

Returns:

0 if the conversion failed, bmap otherwise

Speed:

Slow

Edition:

 C   P 

Remarks:

See also:

bmap_lock, view.bmap