Hey,

so you might have already seen this example
http://docs.xamarin.com/ios/recipes/Media/Video_and_Photos/Save_Photo_to_Album_with_Metadata
grab that code, then in ImageViewController.cs : add this code to the Tweet
Station.Camera.TakePicture handler. Note that it isn't saving the GPS  or
other photo/camera metadata, *just* the image itself.

var documentsDirectory =
Environment.GetFolderPath (Environment.SpecialFolder.Personal);

string jpgFilename = System.IO.Path.Combine (documentsDirectory,
"Photo.jpg"); // hardcoded filename, overwrites each time

NSData imgData = photo.AsJPEG();

NSError err = null;

if (imgData.Save(jpgFilename, false, out err))

{

    Console.WriteLine("saved as " + jpgFilename);

} else {

    Console.WriteLine("NOT saved as" + jpgFilename + " because" +
err.LocalizedDescription);

}


HTH
craig


On Thu, Apr 26, 2012 at 6:39 PM, gill.saqib <[email protected]> wrote:

> Hi Guys,
>
> I am new bee to mono development, i need some help with iphone camera
> integration.
>
> I want to capture image from iphone camera and save the image in to mono
> project folder not into photo album.
>
> Thanks!
>
> Regards,
> Gill
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/How-to-save-Image-from-Iphone-Camera-to-project-directory-other-than-photo-album-Mono-touch-tp4589225p4589225.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to