i'm working on windows phone 8.1 app and in this app i want to store BitmapImage into Picture Library.
BitmapImage code i'm using:
BitmapImage bmpImage = new BitmapImage(new Uri(file.Path));
BitmapImage bmpImage = new BitmapImage(new Uri(file.Path));
i can create jpeg image in picture library using following code:
StorageFile file1 = await KnownFolders.PicturesLibrary.CreateFileAsync("Photo.jpg",CreationCollisionOption.GenerateUniqueName);
now how to save "bmpImage" into "file1" ?

Jack MonserratPosted Mar 19, 2015, 6:54 PM
http://stackoverflow.com/questions/19886950/save-the-image-in-storage-file-in-windows-phone-8
I also use leadtools in my application because I need other image types not just JPEG. This code sample shows how to save TIFF to StorageFile, but saving JPEG is very similar:
https://www.leadtools.com/help/leadtools/v19/dh/co/leadtools.codecs~leadtools.codecs.rastercodecs~saveasync(rasterimage,ileadstream,rasterimageformat,int32).html#Example-CSWinRT