How to draw on an image and save?

AlexRutherfordAlexRutherford GBUniversity ✭✭
edited January 2017 in Xamarin.Forms

Hi guys,

Im working on a little app that requires a user to take a picture and then draw on it (like paint). I have been at this for a little while now and keep running into a problems.

How would you recommend handling this?

At the moment I am aiming for iOS only so I am using a custom renderer to creating a UIView that I can draw on. So thats fine and works (has undo, clear, change colour + size). Now Putting a background image onto this view will not work due to when Draw.Path etc I need to SetNeedsDisplay(), this will keep reloading the image. I only want to draw on the image and may even add this view into a scrollview to allow zooming etc.

Is there anyway I can get around this? If you need any more info please comment to let me know. I hope I have explained that so it is as least understandable!

Edit:
Should have also said that I have got code to save the view as a image, so its mainly just how to get the image behind the drawing view (and able to save it all as a image).

Cheers all,
Alex

Answers

Sign In or Register to comment.