In WP 8 I used PhotoCamera
to make a camera app and to save the image in camera roll I used this method:
private void cam_CaptureImageAvailable(object sender, ContentReadyEventArgs e)
{
string fileName = "photo.jpg";
MediaLibrary library = new MediaLibrary();
library.SavePictureToCameraRoll(fileName, e.ImageStream);
}
In WPSL 8.1 I use MediaCapture
and I use the same style to save image in camera roll but I don't know how to retrieve ImageStream
from MediaCapture
like in e.ImageStream
. I am open to suggestions even with other programming style for saving to camera roll.