Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaLibrary.SavePicture Method

Saves the image to the media library.

NameDescription
MediaLibrary.SavePicture (String, Byte[])Saves the image to the media library, and then returns that saved image as a picture object.
MediaLibrary.SavePicture (String, Stream)Saves the image contained in the stream object to the media library, and then returns that saved image as a picture object.

Exception typeCondition
NotSupportedException SavePicture was used on an unsupported platform. SavePicture is not supported on Windows or Xbox 360.
InvalidOperationException Exception that is thrown if SavePicture is called while the user is tethered to a computer running .

SavePicture is only supported on Windows Phone hardware. The Windows Phone emulator does not support SavePicture.

Community Additions

Show:
© 2014 Microsoft