daihase / Sketch

Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
MIT License
337 stars 57 forks source link

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

Open taslimansari011 opened 4 years ago

taslimansari011 commented 4 years ago

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:

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

daihase commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

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