Pixel Representations: Bytes
nThe byte data type in Java does not take on the values 0..255. Instead it takes on the values -128 to 127.
nThere are no unsigned bytes in Java.
nThis creates a problem for the representation of pixels in Jimages.
nThe solution adopted is to adopt the following representation
n-128 = black
n0 = mid grey
n127 = white
–
n