Image.bytes

Accepts bytes as data for an image.

  1. ubyte[] bytes()
  2. void bytes(ubyte[] data)
    class Image
    @safe nothrow pure
    void
    bytes
    (
    int format = PixelFormat.RGBA
    )
    (
    ubyte[] data
    )
    in (validateImageData!format(data, _width, _height))

Parameters

data ubyte[]

Image data.

Meta