fltk_rgb_image_new
fn
FltkRgbImage fltk_rgb_image_new(const(ubyte) * data, int w, int h, int d, int ld)Creates a new RGB image from pixel data.
The data is copied, so the caller can free the original buffer.
Parameters
data | Pointer to pixel data |
w | Width in pixels |
h | Height in pixels |
d | Depth (bytes per pixel: 1, 2, 3, or 4) |
ld | Line data size (0 = w*d) |
Returns
New RGB image handle, or null on failure