I am writing a game which is basde around blocks. At the moment I load in a 60x60 bitmap which contains a block which is in black and white.
What I want to do is change the white bits of the bitmap to a different colour. I don't really want to have to loop through the bitmap and change the colours manually.
Is there a function which will allow me to do this. Bear in mind the bitmap texture may be 16 colours, 256 colours or 24-bit colour.
If there is, can you please supply some sample code. Thanks.