Is it possible to save a texture/image?

Hi everyone,

just a quick question:

does jME have any sort of support for saving picture?
For example (pseudo code):

Image i = assetManager.loadImage();
Image j = i.setPixel(0, 0, ColoRGBA.Red).clone();
assetManager.saveImage(j, "some/path.jpeg");

Thanks in advance.

It’s more of a java thing, not jMonkey.

https://docs.oracle.com/javase/tutorial/2d/images/saveimage.html

A basic example: https://www.mkyong.com/java/how-to-write-an-image-to-file-imageio/

good enough, thanks for the quick reply.