fltk_bitmap_new

fnFltkBitmap fltk_bitmap_new(const(ubyte) * bits, int w, int h)

Creates a new bitmap from XBM data.

The data should be in XBM format (1-bit per pixel, MSB first). The data pointer must remain valid for the lifetime of the bitmap.

Parameters

bitsPointer to XBM bitmap data
wWidth in pixels
hHeight in pixels

Returns

New bitmap handle, or null on failure