This question is locked. New answers and comments are not allowed.
Hello I'm trying to save a panandzoomimage to the windows phone picture folder by doing:
MemoryStream ms = new MemoryStream();
WriteableBitmap wb = new WriteableBitmap(myPanAndZoomImage);
wb.SaveJpeg(ms, myPanAndZoomImage.ActualWidth, myPanAndZoomImage.ActualHeight, 0, 100);
however I can't cast the zoomImage to (Image) or even (BitmapImage) so that wb will recognize it. Are there any other methods to save, or convert to a byte[] to save?
thanks,
Jon
MemoryStream ms = new MemoryStream();
WriteableBitmap wb = new WriteableBitmap(myPanAndZoomImage);
wb.SaveJpeg(ms, myPanAndZoomImage.ActualWidth, myPanAndZoomImage.ActualHeight, 0, 100);
however I can't cast the zoomImage to (Image) or even (BitmapImage) so that wb will recognize it. Are there any other methods to save, or convert to a byte[] to save?
thanks,
Jon