Constructors
constructor
- new CanvasRenderTarget(
width: number,
height: number,
resolution?: number,
): CanvasRenderTarget Parameters
- width: number
- height: number
Optional
resolution: number
Properties
resolution
resolution: number
Accessors
canvas
- get canvas(): ICanvas
height
- get height(): number
Returns number
- set height(val: number): void
Returns void
width
- get width(): number
Returns number
- set width(val: number): void
Returns void
Methods
destroy
- destroy(): void
Returns void
resize
- resize(desiredWidth: number, desiredHeight: number): void
Parameters
- desiredWidth: number
- desiredHeight: number
Returns void
Creates a Canvas element of the given size to be used as a target for rendering to.
Memberof
PIXI.utils