PIXI.utils.trimCanvas

trimCanvas(canvas: HTMLCanvasElement) → {object}

Trim transparent borders from a canvas

Parameters:
Name Type Description
canvas HTMLCanvasElement

the canvas to trim

Returns:
Type Description
object

Trim data

Powered by webdoc!