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
bits | XBM bitmap data (1 bit per pixel) |
w | Width in pixels |
h | Height 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
bits | Pointer to XBM bitmap data |
w | Width in pixels |
h | Height in pixels |