Canvas

Represents a renderable canvas.

Represents a renderable canvas.

Constructors

public Canvas(int width, int height)

Initializes a new instance of the Canvas class.

Parameters:

width (int)
The canvas width.
height (int)
The canvas height.

Properties

Height : int

Gets the height of the canvas.

MaxWidth : int?

Gets or sets the render width of the canvas.

PixelWidth : int

Gets or sets the pixel width.

Scale : bool

Gets or sets a value indicating whether or not to scale the canvas when rendering.

Width : int

Gets the width of the canvas.