openmicroscopy/bioformats — pull request #456 by melissalinkert (2013-04-11 14:14:31+00:00)
Title: Fix the component retrieval methods in Index16ColorModel (rebased onto dev_4_4)

This is the same as gh-451 but rebased onto dev_4_4.

----

Byte-swapping the values is not correct, and getRed(int), getGreen(int),
and getBlue(int) should normalize the return values to 0-255, as per the
Javadoc for ColorModel:

http://docs.oracle.com/javase/1.5.0/docs/api/java/awt/image/ColorModel.html#getRed(int)

See http://lists.openmicroscopy.org.uk/pipermail/ome-users/2013-April/003654.html