public class PolygonFiller extends Object
| Constructor | Description |
|---|---|
PolygonFiller() |
Constructs a PolygonFiller.
|
PolygonFiller(int[] x,
int[] y,
int n) |
Constructs a PolygonFiller using the specified polygon.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
fill(ImageProcessor ip,
Rectangle r) |
Fills the polygon using the ImageProcessor's current drawing color.
|
ImageProcessor |
getMask(int width,
int height) |
Returns a byte mask containing a filled version of the polygon.
|
void |
setPolygon(int[] x,
int[] y,
int n) |
Specifies the polygon to be filled.
|
public PolygonFiller()
public PolygonFiller(int[] x,
int[] y,
int n)
public void setPolygon(int[] x,
int[] y,
int n)
public void fill(ImageProcessor ip, Rectangle r)
public ImageProcessor getMask(int width, int height)