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

Zoom Feature #18

Open
anilios opened this issue Oct 12, 2015 · 3 comments
Open

Zoom Feature #18

anilios opened this issue Oct 12, 2015 · 3 comments

Comments

@anilios
Copy link

anilios commented Oct 12, 2015

How can i enable zoom in/out feature in NBUImagePicker?

@rivera-ernesto
Copy link
Contributor

Check the code and demo project for NBUAssetsGroupViewController's selectionChangedBlock then you can your own controller or use a NBUGalleryViewController which handles zoom.

@anilios
Copy link
Author

anilios commented Oct 13, 2015

Sorry, i guess my question was not clear enough. I mean to say before we take picture is there a way that we can have zoom in/out to take pictures.

@rivera-ernesto
Copy link
Contributor

Aaah. I see. That would be something like a "digital zoom" of the iPhone camera.

The camera preview is a special layer added to NBUCameraView. You could embed that view inside a UIScrollView and handle pinch to zoom as usual. Then you would need use the zoomed section rect to crop the output of takePicture:.
There are several crop methods in UIImage+NBUAdditions that you could use.

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

No branches or pull requests

2 participants