fltk_rgb_image_new

fnFltkRgbImage 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

dataPointer to pixel data
wWidth in pixels
hHeight in pixels
dDepth (bytes per pixel: 1, 2, 3, or 4)
ldLine data size (0 = w*d)

Returns

New RGB image handle, or null on failure