Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figuring out coordinates #88

Open
mr339 opened this issue Aug 30, 2022 · 4 comments
Open

Figuring out coordinates #88

mr339 opened this issue Aug 30, 2022 · 4 comments

Comments

@mr339
Copy link

mr339 commented Aug 30, 2022

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?

@davidjbradshaw
Copy link
Owner

davidjbradshaw commented Aug 30, 2022 via email

@mr339
Copy link
Author

mr339 commented Aug 30, 2022

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"?

@peacesoup
Copy link

I usually pull the image up in gimp and hover over where I want the map. Gimp gives a pixel based cursor position.

@NicolaiSoeborg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants