Edit an image and it save to disk afterward? Is it possible?

Hi!

Is it possible to edit an image then save it to disk afterwards? I want to access their pixels to check for color/transparency then use that to position a square in the picture, outside of which I will remove everything.

Is this possible? I couldn’t find anything of the kind by googling. MORE IMPORTANTLY: could I then permanently replace other images attached certain objects during runtime with the newly generated images so that when I stop running the program the new images will remain?

Thanks!

Yes, you can easily convert an in-memory Texture2D to an image file and back using the functions here:

1 Like

Awesome!! Thank you very much