Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MonoTouch finger paint sample

Is there any sample code for MonoTouch or MonoDroid that shows how to get the current touch points and draw them to the screen (i.e. a fingerpaint like app)?

like image 206
James Cadd Avatar asked Jan 05 '11 18:01

James Cadd


2 Answers

See the GLPaint example in the monotouch samples https://github.com/migueldeicaza/monotouch-samples

like image 55
Mike Bluestein Avatar answered Nov 06 '22 11:11

Mike Bluestein


I'm not sure about a fingerpaint app, but the Monotouch.Dialog on github (https://github.com/migueldeicaza/MonoTouch.Dialog) has examples for both detecting touches, as well as drawing lines & arcs to a graphics context. You could try combining those two code samples. Also, check into Quartz2d for the drawing - I believe it is a bit more efficient for extensive drawing.

like image 1
jbehren Avatar answered Nov 06 '22 13:11

jbehren