Image

A generic image

Constructors

this
this(string file)

Creates an image from file

this
this(MemFile file)

Creates an image from memory

Members

Functions

convertTo
ubyte[] convertTo(ImageType type)

Converts image to a type, returns byte array of image data (to be written to disk or otherwise manipulated)

height
size_t height()

Hight of image

width
size_t width()

Width of image

Variables

info
ImageInfo info;

Information about the image

pixelData
ubyte[] pixelData;

Pixel Data.

Meta