imwrite

Write image to the given path on the filesystem.

  1. bool imwrite(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(Image image, string path)
  3. bool imwrite(Slice!(kind, packs, T*) slice, ImageFormat format, string path)

Parameters

path string

Path where the image will be written.

width size_t

Width of the image.

height size_t

Height of the image.

format ImageFormat

Format of the image.

depth BitDepth

Bit depth of the image.

data ubyte[]

Image data in unsigned bytes.

return: Status of the writing as bool.

Meta