Something even easier to use is the Xamarin Mobile library (cross-platform): http://betaapi.xamarin.com/?link=N%3aXamarin.Media
Your code will then look like: picker.TakePhotoAsync (new StoreCameraMediaOptions{ Name = "test.jpg", Directory = "MediaPickerSample" } ) .ContinueWith (t => // Continue when the user has taken a photo { if (t.IsCanceled) // The user canceled return; // Show the photo the user took InvokeOnMainThread (delegate { UIImage img = UIImage.FromFile (t.Result.Path); UploadPhoto(img); } ); } ); etc. Gerry On Jul 26, 2012, at 9:35 AM, Nic Wise <n...@fastchicken.co.nz> wrote: > this might help you a bit > > http://samples.xamarin.com/Details/iOS/49eb269c-80c4-41a6-873a-946a6dfc7282 > > which links to (eventually) > > https://github.com/xamarin/monotouch-samples/tree/master/SharedResources/SharedResources/Screens/iPhone/Photos > > https://github.com/xamarin/monotouch-samples/blob/master/SharedResources/SharedResources/Screens/iPhone/Photos/ImagePickerScreen.xib.cs > > But mostly, the class is > > UIImagePickerController > > you set a SourceType (front, rear, photo library) and it does most of > it for you. > > > > On Mon, Jul 23, 2012 at 5:39 AM, proindigo <pro_ind...@live.com> wrote: >> Hello and greetings. >> >> I want to build a very small application which will allow a user to take >> pictures with iphone camera, save it somewhere on the device and provide an >> option to upload it to a destined location on a web server. >> >> As of now I am searching for code blocks for taking pictures with iphone >> camera. Most of the examples I came across were in Objective C which is of >> no use to me. I want to use C# and MonoTouch. Can anybody help me with some >> code blocks or links to pertinent articles/tutorials which do the same? It >> would help me immensely. From what I picked from the internet I think it >> could be done with a UIImageView control and some delegate defined. I maybe >> wrong though. >> >> Please help me by steering me in the right direction. >> >> >> Many Thanks in anticipation. >> >> >> >> >> >> -- >> View this message in context: >> http://monotouch.2284126.n4.nabble.com/Take-Pictures-with-IPHone-Camera-tp4656124.html >> Sent from the MonoTouch mailing list archive at Nabble.com. >> _______________________________________________ >> MonoTouch mailing list >> MonoTouch@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/monotouch > > > > -- > Nic Wise > t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise > b. http://www.fastchicken.co.nz/ > > mobileAgent (for FreeAgent): get your accounts in your pocket. > http://goo.gl/IuBU > Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa > Earnest: Self-employed? Track your business expenses and income. > http://earnestapp.com > Nearest Bus: find when the next bus is coming to your stop. > http://goo.gl/Vcz1p > London Bike App: Find the nearest Boris Bike, and get riding! > http://goo.gl/Icp2 > _______________________________________________ > MonoTouch mailing list > MonoTouch@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch