How to change HUE/SATURATION in loaded texture?

Blitz3D Forums/Blitz3D Beginners Area/How to change HUE/SATURATION in loaded texture?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi!
I have a problem :).
I don't know how to change colorization/hue/saturation in loaded texture (like Hue/Saturation or Colorize in Photoshop). I know that i have to use texturebuffer, read and write pixels etc. but how to calculate desired colorization? I want to do something like a Function ColorizeTexture(texture, r, g, b).
Can someone help me?