The OpenD Programming Language

Image

Represented an encoded image (JPEG or PNG).

Constructors

this
this(const(char)[] relativePath)

Input is an image file.

this
this(const(ubyte)[] data)

Input is PNG or JPEG memory image directly.

Members

Functions

height
int height()

Height in pixels.

printHeight
float printHeight()

Default height when printed, in mm.

printWidth
float printWidth()

Default width when printed, in mm.

width
int width()

Width in pixels.

Meta