public class ImageColorAverager extends Object
| Constructor and Description |
|---|
ImageColorAverager(BufferedImage bi,
int spread)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
averageColor(int x,
int y)
Return the average color around a pixel position in the image.
|
int |
getSpread()
Return the spread of the computation.
|
public ImageColorAverager(BufferedImage bi, int spread)
bi - the imagespread - the spread of the computationpublic int getSpread()
public Color averageColor(int x, int y)
x - the x position of the pixely - the y position of the pixel