roychen wrote:
i draw Rectangle (1px x 1px)...i want to get any location of image color data, Can be achieved by javascript? pls help me
If the rectangle you draw out is a selection the selection has bounds. So you can use the bounds to get the location and size. You can also do a copy paste in a new layer. Use the histogram of the new layer to get the color information. I have never played with programming the histogram information but remember seeing a sample in Photoshop Scripting javascript reference. If its one pixel it should be qiick.