write_image

Returns 0 on success, else an error code. Assumes RGB order for color components in buf, if present.

  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)
  3. ubyte write_image(int fmt, Write io, int w, int h, ubyte[] buf, int reqchans)
    @nogc nothrow
    ubyte
    write_image
    (
    int fmt
    ,,
    int w
    ,
    int h
    ,
    in ubyte[] buf
    ,
    int reqchans = 0
    )

Meta