|
|
|
|
|
|
|
|
|
The
byte data type in Java does not take on the values 0..255.
|
|
Instead
it takes on the values -128 to 127.
|
|
|
There
are no unsigned bytes in Java.
|
|
|
This
creates a problem for the representation of pixels in
|
|
|
|
Jimages.
|
|
|
The
solution adopted is to adopt the following representation
|
|
|
n |
-128
= black
|
|
|
n |
0 = mid grey
|
|
|
n |
127
= white
|
|