There is no prefabricated method to do that, but for a code sample you might want to look at this post: Writing Pixel Values to an Array (the code is in the dark-themed screenshot of @Chris’s post).
There is no prefabricated method to do that, but for a code sample you might want to look at this post: Writing Pixel Values to an Array (the code is in the dark-themed screenshot of @Chris’s post).