Home

function: trimCanvas


trimCanvas(canvas: HTMLCanvasElement): object

Trim transparent borders from a canvas

Params:

Name Type Attribute Description
canvas

the canvas to trim

Returns:

object

  {
    "comment": "/**\n * Trim transparent borders from a canvas\n *\n * @memberof PIXI\n * @function trimCanvas\n * @private\n * @param {HTMLCanvasElement} canvas - the canvas to trim\n * @returns {object} Trim data\n */",
    "meta": {
        "range": [
            0,
            195
        ],
        "filename": "trimCanvas.js",
        "lineno": 1,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils",
        "code": {}
    },
    "description": "

Trim transparent borders from a canvas

", "memberof": "PIXI", "kind": "function", "name": "trimCanvas", "access": "private", "params": [ { "type": { "names": [ "HTMLCanvasElement" ] }, "description": "

the canvas to trim

", "name": "canvas" } ], "returns": [ { "type": { "names": [ "object" ] }, "description": "

Trim data

" } ], "scope": "static", "longname": "PIXI.trimCanvas", "___id": "T000002R004464", "___s": true, "filepath": "core\\utils\\trimCanvas.js" }