I've got an SkSurface. I get SkCanvas from this surface and draw some commands into it. Afer that I get SkImage with `SkSurface.makeImageSnapshot()'.
Now I want to get the raw pixel buffer from it. How do I do that?
I tried using SkPngEncoder::Encode() to save the rendered image into the file just to check that everything works and it does. Now I want to get the rgba buffer instead of encoding it to use further in my engine. What's the easiest wat to do that?
Maybe it's something obvious, but I still haven't figured it out.
___
Thanks,
Denis