How to change HUE/SATURATION in loaded texture?

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

Mikele(Posted 2007) [#1]
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?


chwaga(Posted 2007) [#2]
it would be easier to just load it into a simple image editor (like microsoft office picture manager) and there you can change hue, saturation, or colorization much more easily, and save it. but then, if you wanted to animate the hue/saturation/colorization for graphical effects, you'd need code...or a list of images to frame-by-frame animate it.


Mikele(Posted 2007) [#3]
Thanks but I need to do this in running code (but not realtime). Color can have a thousands variations :).


big10p(Posted 2007) [#4]
These any use?
http://www.blitzbasic.com/codearcs/codearcs.php?code=1380


Mikele(Posted 2007) [#5]
Thanks!!! This looks very usefull. My "searching machine" not woring properly... :). Thank you.


ZJP(Posted 2007) [#6]
Use this lib.
http://www.blitzbasic.com/Community/posts.php?topic=34301

JP


Mikele(Posted 2007) [#7]
Hey! Thank you ZJP. Nice library with Colorize function - exactly what i need. :)


ZJP(Posted 2007) [#8]
You're welcome... ;-)