// Get color of one point.
// Though this code looks more convoluted, it recycles the pixel
// object, thus avoiding frothing.
private Object pixelData = null;
// ...
// Provide a suitable container e.g. byte[] for the result from the last time,
// null on first call.
pixelData = bufferedImage.getRaster().getDataElements( x, y, pixelData );
int rgb = bufferedImage.getColorModel().getRGB( pixelData );