write_image

Writes to f which must already be open. Does not close it afterwards. 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)
  2. ubyte write_image(int fmt, FILE* f, int w, int h, ubyte[] buf, int reqchans)
    @nogc nothrow
    ubyte
    write_image
    (
    int fmt
    ,
    FILE* f
    ,
    int w
    ,
    int h
    ,
    in ubyte[] buf
    ,
    int reqchans = 0
    )
  3. ubyte write_image(int fmt, Write io, int w, int h, ubyte[] buf, int reqchans)

Meta