How can I generate Polygon coordinates from image

1822 views2 repliesLast post: 7/24/2007
Hi,
I need to draw a map in a Java application (using drawPolygon() supplying all the x' and y coordinates), and wonder if it is possible to get the polygon coordinates from an Image selection in Photoshop?

In Photoshop, I can open an image of the map I need to draw, and for example use the "Polygonal Lasso Tool" to select the border of the map (or perhaps more accurate by using the magic wand tool?)

Is there some way to see the coordinates (x' and y's) used by the polygonal selection generated by any of the above?
This would help me tremendously, so hope someone can help me here.

Tips about any other tool than Photoshop that can do the trick would also be great.

Regards, Per Magnus
#1
Perma wrote:
I need to draw a map in a Java application (using drawPolygon() supplying all the x' and y coordinates), and wonder if it is possible to get the polygon coordinates from an Image selection in Photoshop?
In Photoshop, I can open an image of the map I need to draw, and for example use the "Polygonal Lasso Tool" to select the border of the map (or perhaps more accurate by using the magic wand tool?)
Is there some way to see the coordinates (x' and y's) used by the polygonal selection generated by any of the above?
This would help me tremendously, so hope someone can help me here.
Tips about any other tool than Photoshop that can do the trick would also be great.

Could you display the image in a Java app and get that to store the coordinates as you click on the image?

Andrew
#2
Perma wrote:
Hi,
I need to draw a map in a Java application (using drawPolygon() supplying all the x' and y coordinates), and wonder if it is possible to get the polygon coordinates from an Image selection in Photoshop?

Look to the Info pallet. Touch each corner. Record x,y.
#3