Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: how to get any location of image color data?

$
0
0

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.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>