MediaLibrary.SavePicture Method
XNA Game Studio 4.0
Saves the image to the media library.
| 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. |
| Exception type | Condition |
|---|---|
| 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. |