drawImage
fn
void drawImage(const(ubyte)[] buf, int x, int y, int w, int h, int depth = 3, int lineSize = 0) nothrow @nogcDraws raw RGB image data to the screen.
Parameters
buf | Image data buffer (RGB or RGBA format) |
x | X coordinate |
y | Y coordinate |
w | Width in pixels |
h | Height in pixels |
depth | Bytes per pixel (default 3 for RGB) |
lineSize | Bytes per line (0 for w*depth) |