Bitmap.this

this(const(ubyte)[] bits, int w, int h)

Creates a bitmap from XBM data.

The data should be in XBM format (1 bit per pixel). The data must remain valid for the lifetime of this Bitmap.

Parameters

bitsXBM bitmap data (1 bit per pixel)
wWidth in pixels
hHeight in pixels
this(const(ubyte) * bits, int w, int h)

Creates a bitmap from a raw pointer to XBM data.

This constructor is for use with static/immutable data where the lifetime is guaranteed. For dynamic data, use the slice version.

Parameters

bitsPointer to XBM bitmap data
wWidth in pixels
hHeight in pixels