acerbetti / ACEDrawingView

An open source iOS component to create a drawing app
Apache License 2.0
665 stars 171 forks source link

Possible to take a photo with camera and draw on to it? #46

Open brendanmullan opened 9 years ago

brendanmullan commented 9 years ago

Just quick question, would it be possible to take a photo with the device camera and draw onto it? Might be a nice feature to add :-)

oscarbc96 commented 9 years ago

+1

vicc commented 9 years ago

Yes it is. You can use something like LLSimpleCamera to setup the capturing feature. Once a photo has been taken, you can send the photo to a new UIViewController (where you'll edit the image / draw on it). You can set the default view's class to ACEDrawingView in the editing controller, and pass the captured photo as it's background image. From there everything is straightforward. :sunglasses:

ntnmrndn commented 9 years ago

Actually it's not working properly... See: capture d ecran 2015-10-19 a 17 47 13

Related : https://github.com/acerbetti/ACEDrawingView/issues/27

ntnmrndn commented 9 years ago

Actually it seems to work if you add the picture in "viewDidLayoutSubview" AND if the picture is exactly the same size as the view.

hollyfeld commented 8 years ago

Set the ACEDrawingModeScale on ACEDrawingView to ACEDrawingModeScale.

mr-pant commented 8 years ago

I have made some changes for drawing on image. Please have a look here

acerbetti commented 8 years ago

Do you mind to do a PR ?

mr-pant commented 8 years ago

Please review the request, suggest improvements.