• 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.

    • data: ImageData | null
    • height: number
    • width: number

    Memberof

    PIXI.utils

Generated using TypeDoc