spread around the pixel, which will define the area which will be used to average the color.
spread area is partly outside the image, only the pixels in the image will be used. For example:
BufferedImage bi = ImageIO.read(<my image file>); ImageColorAverager averager = new ImageColorAverager(bi, 10); int x = <x position of the pixel> int y = <y position of the pixel> Color color = averager.averageColor(x, y);
Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences