2006-07-11, 06:48 PM
I'm working on something which reads in simple jpg images (example, a black arrow on a white square background). For skinning purposes (and user options) I'd like to be able to change individual colours so, for instance, if the user wants a white arrow on a black background they can do that.
Is there a way that I can read a jpg in as an Image then tell the image to substitute every occurence of a pixel that is colour X with colour Y?
I know I could just draw something as simple as an arrow programatically and set the colours at that stage, but the images are a little more complex than that.
Cheers,
Brian
Is there a way that I can read a jpg in as an Image then tell the image to substitute every occurence of a pixel that is colour X with colour Y?
I know I could just draw something as simple as an arrow programatically and set the colours at that stage, but the images are a little more complex than that.
Cheers,
Brian