get information about pixell

I don't sure if this is the place to ask...How can I get the collor position (like 1-256 grayscale) about specific Pixell in an image.It will be helpfull even by giving me a direction to serch about.motiIsrael.
[246 byte] By [motish5a] at [2007-11-26 15:03:02]
# 1

Color values are 0-255

Look at getRGB in BufferedImage API:

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html

And also at getSample in Raster API, you get the raster using BufferedImage.getData()

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/Raster.html

Are you working with grayscale image or RGB?

Rodney_McKaya at 2007-7-8 8:52:18 > top of Java-index,Security,Cryptography...
# 2
I attend to work with grayscale image.I stiil don't understand how can I get possition of one pixell, when I use getRGB()
motish5a at 2007-7-8 8:52:18 > top of Java-index,Security,Cryptography...
# 3
If you work with grayscale images it would be easier to use image.getData().getSample(x, y, 0) it will return the pixel value for (x,y) coordinate.
Rodney_McKaya at 2007-7-8 8:52:18 > top of Java-index,Security,Cryptography...