write_image

Writes an image to file. req_chans defines the format the image is saved in (you can use ColFmt here).

void
write_image
(
in char[] file
,
long w
,
long h
,
in ubyte[] data
,
long req_chans = 0
)

Meta