Dom

Is this a PPC Mac or an Intel mac?If it's PPC that remember that the High and Low bytes are swapped over,so the masks would not work.

so

$FF0000

would need to be

$0000FF

Just a thought

Dean