MCPcopy Create free account
hub / github.com/GoogleChrome/samples / getImageData

Function getImageData

idle-detection/script.mjs:84–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82};
83
84const getImageData = () => {
85 return ctx.getImageData(0, 0, canvas.width, canvas.height);
86};
87
88const putImageData = (imageData) => {
89 ctx.putImageData(imageData, 0, 0);

Callers 1

script.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected