The OpenD Programming Language

printed.canvas.irenderer

Generic 2D vector renderer.

Public Imports

printed.canvas.image
public import printed.canvas.image;
Undocumented in source.

Members

Enums

FontStyle
enum FontStyle

Font style

FontWeight
enum FontWeight

Font weight.

TextBaseline
enum TextBaseline

Text reference baseline.

Functions

brush
Brush brush(int r, int g, int b, int a)
Brush brush(int r, int g, int b)
Brush brush(const(char)[] htmlColor)

Make a brush suitable for fillStyle and strokeStyle.

convertMillimetersToPoints
float convertMillimetersToPoints(float pt)

Convert millimeters to points.

convertPointsToMillimeters
float convertPointsToMillimeters(float pt)

Convert points to millimeters.

Interfaces

IRenderingContext2D
interface IRenderingContext2D

Describes the printed 2D renderer.

Static variables

defaultRenderOptions
RenderOptions defaultRenderOptions;

The default render options.

Structs

RenderOptions
struct RenderOptions

Allows to customize rendering, for format-specific features.

TextMetrics
struct TextMetrics

The TextMetrics interface represents the dimensions of a piece of text, as created by the measureText() method. Reference: https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics

Meta