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

Focus point #68

Closed
pjebs opened this issue Jul 16, 2014 · 3 comments
Closed

Focus point #68

pjebs opened this issue Jul 16, 2014 · 3 comments

Comments

@pjebs
Copy link

pjebs commented Jul 16, 2014

If the user taps the screen to focus, is there any way to get the focus x,y position in relation to the actual image.
say image ends up being 100x100.

If user touches mid point, is there a way to get the point (50,50) in the delegate method where I process the image?

@danielebogo
Copy link
Owner

For now the delegate doesn't have a method to show this value. And the value is in relation with the camera layer. If i add the method you might to convert the actual point to the current image dimension.

@pjebs
Copy link
Author

pjebs commented Jul 16, 2014

How can I convert point in preview layer to image dimension?

@danielebogo
Copy link
Owner

I don't know. You should find the right ratio between the image size and the layer size and convert the points to the right coordinates.

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

2 participants