ACEDrawingView icon indicating copy to clipboard operation
ACEDrawingView copied to clipboard

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

Open brendanmullan opened this issue 10 years ago • 8 comments

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 :-)

brendanmullan avatar Jun 26 '15 13:06 brendanmullan

+1

oscarbc96 avatar Jul 06 '15 11:07 oscarbc96

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:

vicc avatar Sep 18 '15 03:09 vicc

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 avatar Oct 19 '15 15:10 ntnmrndn

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

ntnmrndn avatar Oct 19 '15 15:10 ntnmrndn

Set the ACEDrawingModeScale on ACEDrawingView to ACEDrawingModeScale.

hollyfeld avatar May 10 '16 17:05 hollyfeld

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

deviserRahul avatar Oct 08 '16 04:10 deviserRahul

Do you mind to do a PR ?

acerbetti avatar Oct 08 '16 04:10 acerbetti

Please review the request, suggest improvements.

deviserRahul avatar Oct 08 '16 06:10 deviserRahul