Dynamically altering texture color

I was wondering how I could dynamically color the main lensflare texture programatically, rather than saving different colored copies.



My idea fell along the lines of desaturating the entire image and somehow masking a color texture over it, or altering the pixel colors as they are loaded in.



I am confused how to try either of these ideas, or is there a better way to do it? I would appreciate any help. Thanks!

Wll each texture has an image, consisting of data and a format, so changing the contends is possible, however not that easy I would say.

Should be possible by creating different materials with the same texture. The texture should be reused and the materials give it a different color, alpha or whatever.

is there any way to overlay or combine 2 textures dynamically like how you would in a graphics manipulation program using JME?