Oracle3001:
>If I have an RGB image, I know I can split it into the 3 grey-scale images,
>by applying the following AND bitwise masking
[...]
>If I have an image in CMYK, what is the bitwise AND masking I require to
>extract the 4 greyscale images representing one for each colour?
That depends on the encoding which was used. Where do you get those
CMYK samples from?
Anyway, you could just try a couple of straight-forward encodings,
e.g.
cyan = (c & 0xff000000) >> 24;
magenta = (c & 0x00ff0000) >> 16;
yellow = (c & 0x0000ff00) >> 8;
black = c & 0xff;
Regards,
Marco
--
Please reply in the newsgroup, not by email!
Java programming tips:
http://jiu.sourceforge.net/javatips.html
Other Java pages:
http://www.geocities.com/marcoschmidt.geo/java.html