エクスポート (0) 印刷
すべて展開
EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

MediaLibrary.SavePicture Method (String, Byte[])

Saves the image to the media library, and then returns that saved image as a picture object.

public Picture SavePicture (
         string name,
         byte[] imageBuffer
)

Parameters

name
Type: String
Name of the image file saved to the media library.
imageBuffer
Type: Byte
Buffer that contains the image in the required JPEG file format.

Return Value

Type: Picture
The Picture object that represents the saved image.

Image data that is passed in must be in a JPEG file format. Additionally, SavePicture always saves the image in a JPEG file format.

Capabilities for Windows Phone

If you use this API in your Windows Phone app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_MEDIALIB_PHOTOWindows Phone 8
ID_CAP_MEDIALIBWindows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Windows Phone

コミュニティの追加

追加
表示:
© 2014 Microsoft