To get a certain value, I occasionally need to draw on the canvas, and then analyze this canvas pixel-by-pixel. In this case, the canvas is never inserted into the document. Those. I work with it as a buffer. Every time I create a new canvas (this happens relatively infrequently), and I don’t show that I don’t need it anymore. Is this use of canvas
correct in a web application and will there not be memory leaks?
|