Constructors
constructor
- new CanvasRenderTarget(width, height, resolution?): 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): void
Returns void
width
- get width(): number
Returns number
- set width(val): void
Returns void
Methods
destroy
- destroy(): void
Returns void
resize
- resize(desiredWidth, desiredHeight): 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