MediaLibrary.SavePicture Method

Saves the image to the media library.

Overload List

Name Description
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.

Exceptions

Exception type Condition
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 .

Remarks

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

See Also

Reference

MediaLibrary Class
MediaLibrary Members
Microsoft.Xna.Framework.Media Namespace