image-map-resizer
image-map-resizer copied to clipboard
Figuring out coordinates
How to figure out the coordinates of a part of the image(for example: if there's a symbol in the middle of the image that i want to make clickable)? is it hit and trial or is there any documentation for it?
Count pixels in the full sized image
Sent from my iPhone.
Count pixels in the full sized image -- Sent from my iPhone.
thanks, also what does the coordinates of rect in coor="10,10,30,10" mean? is it "x-coord, y-coor, length of rect, height of rect"?
I usually pull the image up in gimp and hover over where I want the map. Gimp gives a pixel based cursor position.
what does the coordinates of rect in coords="10,10,30,10" mean?
For rect it is x1,y1,x2,y2 and then a rectangle will drawn between (x1, y1) and (x2, y2).
From the spec:
- x1: the distance from the left edge of the image to the left side of the rectangle
- y1: the distance from the top edge to the top side
- x2: the distance from the left edge to the right side
- y2: the distance from the top edge to the bottom side