change individual colour of an image to another

BlitzMax Forums/BlitzMax Beginners Area/change individual colour of an image to another

supermeerkat(Posted 2005) [#1]
Hi Fellas

Is it possible to change an individual colour of an image to another colour? If yes, how?

Cheers


TartanTangerine (was Indiepath)(Posted 2005) [#2]
Not using the normal command set. You could read the pixels in the imange and change them that way.


ImaginaryHuman(Posted 2005) [#3]
you basically would have to 'search and replace' a given pixel value.


Perturbatio(Posted 2005) [#4]
You *could* set the mask colour to the pixel colour then draw it over a rect the same size that is the actual colour you want then grab it.


supermeerkat(Posted 2005) [#5]
Thanks very much for your suggestions guys.


Eikon(Posted 2005) [#6]
Here's some code I use