getImageData and putImageData
Hi there! I wonder if we have plan to implement getImageData and pubImageDta like what browser has. Or are there already some APIs that can do that but I'm missing them?
You can use draw_image for pubImageData.
Getting it back is a bit more involved and not even possible on WebGL.
Pathfinder renders everything at once, so you will have to finish the Scene to render it and get the texture. See here for an example
Currently I'm using readPixels for WebGL backend. Yes I need to build and render the scene before I do that.
I would like to implement them, yes. getImageData() will not be introspectable without consulting the Renderer, however, because the CanvasRenderingContext2D has no access to the raw pixel data.