| Modifier and Type | Method and Description |
|---|---|
boolean |
get(int x,
int y)
Indicates whether a pixel at given point is set.
|
boolean |
get(Point p)
Indicates whether a pixel at given point is set.
|
void |
set(int x,
int y)
Sets the pixel at the given coordinates.
|
void |
set(Point p)
Sets the pixel at the given coordinates.
|
void |
set(Rectangle rect)
Sets all the pixels in the given rectangle.
|
public PixelMask(Rectangle box)
box - defines the boundary of the pixel mask regionpublic void set(Rectangle rect)
rect - region to setpublic void set(Point p)
p - coordinates of point to setpublic boolean get(Point p)
p - coordinates of point to testpublic void set(int x,
int y)
x - X coordinate of point to sety - Y coordinate of point to setpublic boolean get(int x,
int y)
x - X coordinate of point to testy - Y coordinate of point to testCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.