Name | Type | Attributes | Default | Description |
---|---|---|---|---|
width |
number |
the width for the newly created canvas |
||
height |
number |
the height for the newly created canvas |
||
resolution |
number |
<optional> |
PIXI.settings.RESOLUTION |
The resolution / device pixel ratio of the canvas |
Members
The Canvas object that belongs to this CanvasRenderTarget.
A CanvasRenderingContext2D object representing a two-dimensional rendering context.
The height of the canvas buffer in pixels.
The resolution / device pixel ratio of the canvas
- Default Value:
- 1
The width of the canvas buffer in pixels.
Methods
Destroys this canvas.
Resizes the canvas to the specified width and height.
Name | Type | Description |
---|---|---|
desiredWidth |
number |
the desired width of the canvas |
desiredHeight |
number |
the desired height of the canvas |