static cloneCanvas(oCanvas) {
		let w, h, b;
		if (CanvasHelper.isImage(oCanvas)) {
			let oImage = oCanvas;
			w = oImage.naturalWidth;
			h = oImage.naturalHeight;
			b = bDefaultImageSmoothing;
		} else {
			w = oCanvas.width;
			h = oCanvas.height;
			b = CanvasHelper.getImageSmoothing(oCanvas);
		}
		let c = CanvasHelper.createCanvas(w, h);
		CanvasHelper.setImageSmoothing(c, b);
		c.getContext('2d').drawImage(oCanvas, 0, 0);
		return c;
	}
/**
	 * Clones a canvas into a new one
	 * @param oCanvas {HTMLCanvasElement|Image} to be cloned
	 * @return  HTMLCanvasElement
	 */
Clones a canvas into a new one
@param oCanvas {HTMLCanvasElement|Image} to be cloned
@return  HTMLCanvasElement
Clones a canvas into a new one @param oCanvas { HTMLCanvasElement|Image } to be cloned @return HTMLCanvasElement
static cloneCanvas(oCanvas) {
		let w, h, b;
		if (CanvasHelper.isImage(oCanvas)) {
			let oImage = oCanvas;
			w = oImage.naturalWidth;
			h = oImage.naturalHeight;
			b = bDefaultImageSmoothing;
		} else {
			w = oCanvas.width;
			h = oCanvas.height;
			b = CanvasHelper.getImageSmoothing(oCanvas);
		}
		let c = CanvasHelper.createCanvas(w, h);
		CanvasHelper.setImageSmoothing(c, b);
		c.getContext('2d').drawImage(oCanvas, 0, 0);
		return c;
	}
static cloneCanvas ( oCanvas ) { let w , h , b ; if ( CanvasHelper . isImage ( oCanvas ) ) { let oImage = oCanvas ; w = oImage . naturalWidth ; h = oImage . naturalHeight ; b = bDefaultImageSmoothing ; } else { w = oCanvas . width ; h = oCanvas . height ; b = CanvasHelper . getImageSmoothing ( oCanvas ) ; } let c = CanvasHelper . createCanvas ( w , h ) ; CanvasHelper . setImageSmoothing ( c , b ) ; c . getContext ( '2d' ) . drawImage ( oCanvas , 0 , 0 ) ; return c ; }
Clones a canvas into a new one
 @param oCanvas {HTMLCanvasElement|Image} to be cloned
 @return  HTMLCanvasElement
Clones a canvas into a new one @param oCanvas { HTMLCanvasElement|Image } to be cloned @return HTMLCanvasElement