Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

image processing

Hey all,
I am looking for a way to sample pixels in a binary bufferedimage(black and white) to see if it is black or white.
any help would be greatly appreciated.
Thanks a bunch
Brad. :rolleyes:
[230 byte] By [bradleym83] at [2007-11-11 7:06:34]
# 1 Re: image processing
for x,y,image :

image is BufferedImage,
0 <= x < image.getWidth() ,
0 <= y < image.getHeight() ,

int rgbColor = image.getRGB(x, y);
------------
big rgbColor values are brighter.
mr1yh1 at 2007-11-11 22:39:21 >