A final two cents from me: have you considered biting the bullet, performing all your manipulation in LabVIEW using 24-bit data, and then reducing the color depth of the resulting BMP files after the fact?
I would suggest this method, since it just seems like a mess to build your own color reduction functions in LabVIEW, and there are some good open-source tools out there to handle that step. In particular, I suggest installing Imagemagick (available on any platform you can think of) and using the following command with System Exec:
mogrify -colors 256 +dither [FILENAME]
Problem solved, even if it's not in LabVIEW. The cost is nothing, and there's probably as much or more image-manipulation expertise behind that function as you might find in the equivalent IMAQ Vision function or anywhere else.
--John
Message Edited by Johnner on 03-10-2005 07:27 PM