new PIXI.CanvasRenderTarget(width, height, resolution)
Name | Type | Default | Description |
---|---|---|---|
width |
number |
the width for the newly created canvas |
|
height |
number |
the height for the newly created canvas |
|
resolution |
number | 1 |
optional
The resolution / device pixel ratio of the canvas |
Members
-
height
-
Sets the height.
-
width
-
Sets the width.
Methods
-
Destroys this canvas.
-
resize(width, height)
-
Resizes the canvas to the specified width and height.
Name Type Description width
number the new width of the canvas
height
number the new height of the canvas