• Trim transparent borders from a canvas.

    Parameters

    • canvas: ICanvas

      The canvas to trim.

    Returns { data: ImageData | null; height: number; width: number }

    The trimmed canvas data.

    PIXI.utils