Image.this

Construct an image by given size, format and bit depth information.

  1. this()
  2. this(Image copy, bool deepCopy)
  3. this(size_t width, size_t height, ImageFormat format, BitDepth depth, ubyte[] data)
    class Image
    @safe pure nothrow
    this

Parameters

width size_t

width of a newly created image.

height size_t

height of a newly created image.

format ImageFormat

format of a newly created image.

depth BitDepth

bit depth of a newly created image.

data ubyte[]

potential data of an image, pre-allocated. If not a null, data array has to be of correct size = width*height*channels*depth, where channels are defined by the format, and depth is counded in bytes.

Meta