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

New Feature: Draw on an image with zoom functionality enabled for the image #27

Open
taslimansari011 opened this issue Jan 28, 2020 · 3 comments

Comments

@taslimansari011
Copy link

taslimansari011 commented Jan 28, 2020

Thanks for the library as this library has almost all the features that I need. But I have to draw on image with zoom functionality enabled for the image for better editing experience.
Some issues I am facing:

  • How to save an image after editing?
  • Erasing functionality erases the drawing and part of the image as well.

Plz help as I am currently working on my project. Thanks.

@daihase
Copy link
Owner

daihase commented Jan 29, 2020

@taslimansari011
Thank you for using my library.

How to save an image after editing?

Does this mean saving image to the iPhone gallery? If so , please refer to my sample source.

Erasing functionality erases the drawing and part of the image as well.

In sketch, the default process is as above. If you want to erase only drawing picture you drew on the photo, you need to devise the layer structure.

For example, put a layer to load and set a photo at the bottom, and add SketchView on it.
This way, only the picture drawn in SketchView will be erased with the eraser.

I hope you will go well.

@kronos317
Copy link

@daihase

This is really great library. I am very impressed with this while using.

I need to add pinch-to-zoom feature in my application. How can I implement this?
Basically, I need to allow user to pinch to zoom in / out and draw the things using SketchTool.

Here, one more hairpulling issue might be that, brush width should be increased / decreased while drawing on that view according to zoom level.

@kronos317
Copy link

kronos317 commented Feb 2, 2020

Also if we zoom in, we should allow users to scroll the view in h/z axis

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

3 participants