I want to load some images (png, jpeg, etc) for canvaskit-wasm on node.js environment.
canvaskit-wasm: https://www.npmjs.com/package/canvaskit-wasm
I can imagine I should use putImageData method, but what data type should I use for argument of this method?
ArrayBuffer or ...?
I can't find any example for node.js environment usage, so I wanto to know it.
I know we can use node-canvas for node.js environment, but I want to use canvas with electron.
Node-canvas is rely on native binary, so I found some hard-to-solve issues to be packaged by electron.
Hence I want to use canvaskit-wasm with my electron app.
I finally found the solution:
https://github.com/google/skia/blob/main/modules/canvaskit/npm_build/node.example.js
Thank you for kobakazu0429 's help