How to change HUE/SATURATION in loaded texture?
Blitz3D Forums/Blitz3D Beginners Area/How to change HUE/SATURATION in loaded texture?
| ||
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? |
| ||
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. |
| ||
Thanks but I need to do this in running code (but not realtime). Color can have a thousands variations :). |
| ||
These any use? http://www.blitzbasic.com/codearcs/codearcs.php?code=1380 |
| ||
Thanks!!! This looks very usefull. My "searching machine" not woring properly... :). Thank you. |
| ||
Use this lib. http://www.blitzbasic.com/Community/posts.php?topic=34301 JP |
| ||
Hey! Thank you ZJP. Nice library with Colorize function - exactly what i need. :) |
| ||
You're welcome... ;-) |