Nitin Patil

Nitin Patil

  • NA
  • 653
  • 209k

how to store BitmapImage into Picture Library in WP8.1

Aug 4 2014 9:23 AM
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));
 
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" ?

Answers (1)