write_image

Returns 0 on success, else an error code. Assumes RGB order for color components in buf, if present. Note: The file will remain even if the write fails.

  1. ubyte write_image(char[] fname, int w, int h, ubyte[] buf, int reqchans)
    @nogc nothrow
    ubyte
    write_image
    (
    in char[] fname
    ,
    int w
    ,
    int h
    ,
    in ubyte[] buf
    ,
    int reqchans = 0
    )
  2. ubyte write_image(int fmt, FILE* f, int w, int h, ubyte[] buf, int reqchans)
  3. ubyte write_image(int fmt, Write io, int w, int h, ubyte[] buf, int reqchans)

Meta