Someone wrote in answer to similar quesion *******************************************************SVGImageElement or VideoFrame)'.
Actually you don't have to create an image at all. drawImage() will accept a Canvas as well as an Image object.
//grab the context from your destination canvas
var destCtx = destinationCanvas.getContext('2d');"
//call its drawImage() function passing it the source canvas directly destCtx.drawImage(sourceCanvas, 0, 0);
Way faster than using an ImageData object or Image element. *********************************************************
So I tried to copy ctT canvas by just using drawimage but get errors, MultiID.destCtx.drawImage(ctT, 0, 0);
I tried it with an image so destCtx do work.
But with canvas...
DrawLEFTCANVAS.js:52 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or OffscreenCanvas or
at listLeftCanvas (DrawLEFTCANVAS.js:52)Ok saw the error, solved.
at buildPlayTrack (mixDown.js:54)
at songDataUpdate (loadsave.js:114)
at autoLoadFile (loadsave.js:36)
at MAINinit.js:77
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 469 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:07:09 |
Calls: | 9,449 |
Calls today: | 6 |
Files: | 13,596 |
Messages: | 6,111,868 |
Posted today: | 1 |