drawImage

fnvoid drawImage(const(ubyte)[] buf, int x, int y, int w, int h, int depth = 3, int lineSize = 0) nothrow @nogc

Draws raw RGB image data to the screen.

Parameters

bufImage data buffer (RGB or RGBA format)
xX coordinate
yY coordinate
wWidth in pixels
hHeight in pixels
depthBytes per pixel (default 3 for RGB)
lineSizeBytes per line (0 for w*depth)