imwrite

Write image to the given path on the filesystem.

  1. bool imwrite(in string path, size_t width, size_t height, ImageFormat format, BitDepth depth, ubyte[] data)
    bool
    imwrite
    (
    in string path
    ,
    size_t width
    ,
    size_t height
    ,,,
    ubyte[] data
    )
  2. bool imwrite(in Image image, in string path)
  3. bool imwrite(Slice!(kind, packs, T*) slice, ImageFormat format, in string path)

Parameters

path
Type: string

Path where the image will be written.

width
Type: size_t

Width of the image.

height
Type: size_t

Height of the image.

format

Format of the image.

depth
Type: BitDepth

Bit depth of the image.

data
Type: ubyte[]

Image data in unsigned bytes.

return: Status of the writing as bool.

Meta