screenshot(width = null, height = null, sType = 'image/png') {
        width = width || this._renderCanvas.width;
        height = height || this._renderCanvas.height;
        const oCanvas = CanvasHelper.createCanvas(width, height);
        const oContext = oCanvas.getContext('2d');
        oContext.drawImage(
            this._renderCanvas,
            0,
            0,
            this._renderCanvas.width,
            this._renderCanvas.height,
            0,
            0,
            width,
            height
        );
        return CanvasHelper.getData(oCanvas, sType);
    }
/**
     * Returns a data image of the last rendered image
     */
Returns a data image of the last rendered image
Returns a data image of the last rendered image
screenshot(width = null, height = null, sType = 'image/png') {
        width = width || this._renderCanvas.width;
        height = height || this._renderCanvas.height;
        const oCanvas = CanvasHelper.createCanvas(width, height);
        const oContext = oCanvas.getContext('2d');
        oContext.drawImage(
            this._renderCanvas,
            0,
            0,
            this._renderCanvas.width,
            this._renderCanvas.height,
            0,
            0,
            width,
            height
        );
        return CanvasHelper.getData(oCanvas, sType);
    }
screenshot ( width = null , height = null , sType = 'image/png' ) { width = width || this . _renderCanvas . width ; height = height || this . _renderCanvas . height ; const oCanvas = CanvasHelper . createCanvas ( width , height ) ; const oContext = oCanvas . getContext ( '2d' ) ; oContext . drawImage ( this . _renderCanvas , 0 , 0 , this . _renderCanvas . width , this . _renderCanvas . height , 0 , 0 , width , height ) ; return CanvasHelper . getData ( oCanvas , sType ) ; }
Returns a data image of the last rendered image
Returns a data image of the last rendered image