Export (0) Print
Expand All

MediaLibrary.SavePicture Method

XNA Game Studio 4.0
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 a unsupported platform. SavePicture is not supported on Windows or Xbox 360.
InvalidOperationException Exception that is thrown if SavePicture is called using the Windows Phone Emulator.

SavePicture is only supported on Windows Phone. However, SavePicture is not supported using Windows Phone Emulator.

Community Additions

ADD
Show:
© 2014 Microsoft