|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for grayscale images.
Grayscale images have only one channel.
Each sample is a shade of gray, an intensity value between black (zero) and white (maximum value).
Black and white photos are really grayscale photos.
For images that only use black and white, see BilevelImage
.
Method Summary | |
boolean |
isBlack(int x,
int y)
Returns if the pixel specified by the location in the arguments is black. |
boolean |
isWhite(int x,
int y)
Returns if the pixel specified by the location in the arguments is white. |
void |
putBlack(int x,
int y)
Sets a pixel to black (minimum intensity value). |
void |
putWhite(int x,
int y)
Sets a pixel to white (maximum intensity value). |
Method Detail |
public boolean isBlack(int x, int y)
x
- the horizontal location of the pixely
- the vertical location of the pixel
IllegalArgumentException
- if any of the parameters are invalidpublic boolean isWhite(int x, int y)
x
- the horizontal location of the pixely
- the vertical location of the pixel
IllegalArgumentException
- if any of the parameters are invalidpublic void putBlack(int x, int y)
x
- horizontal position of the pixel's locationy
- vertical position of the pixel's locationpublic void putWhite(int x, int y)
x
- horizontal position of the pixel's locationy
- vertical position of the pixel's location
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |