Hi Dave. Any book ? webpage ? explaining roots of that ? WBR Dmitry. > For example, suppose you have an 8-bit value that represents a grayscale > pixel. You can convert this to the equivalent RGB value packed into a > 32-bit word by multiplying it by 0x00010101. If you want it left-justified > in the word, just change the constant to 0x01010100. > -- Dave Tweed -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist