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:
Printable View
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:
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.