C# Класс Cimbalino.Phone.Toolkit.Services.MediaLibraryService

Represents an implementation of the IMediaLibraryService.
Наследование: IMediaLibraryService
Показать файл Открыть проект

Открытые методы

Метод Описание
GetPictureFromToken ( string token ) : Picture

Retrieves a picture from the device's media library based on a picture token.

SavePicture ( string name, Stream source ) : void

Saves the image contained in the stream object to the media library.

SavePicture ( string name, byte imageBuffer ) : void

Saves an image to the media library.

SavePictureToCameraRoll ( string name, Stream source ) : void

Saves the specified image Stream as a picture in the Windows Phone camera roll.

SavePictureToCameraRoll ( string name, byte imageBuffer ) : void

Saves the specified byte array as a picture in the Windows Phone camera roll.

Описание методов

GetPictureFromToken() публичный Метод

Retrieves a picture from the device's media library based on a picture token.
public GetPictureFromToken ( string token ) : Picture
token string The picture token.
Результат Picture

SavePicture() публичный Метод

Saves the image contained in the stream object to the media library.
public SavePicture ( string name, Stream source ) : void
name string Name of the image file saved to the media library.
source System.IO.Stream Stream object that contains the image information in the required JPEG file format.
Результат void

SavePicture() публичный Метод

Saves an image to the media library.
public SavePicture ( string name, byte imageBuffer ) : void
name string Name of the image file saved to the media library.
imageBuffer byte Buffer that contains the image in the required JPEG file format.
Результат void

SavePictureToCameraRoll() публичный Метод

Saves the specified image Stream as a picture in the Windows Phone camera roll.
public SavePictureToCameraRoll ( string name, Stream source ) : void
name string The name to use for the new picture.
source System.IO.Stream The picture to save, provided as a .
Результат void

SavePictureToCameraRoll() публичный Метод

Saves the specified byte array as a picture in the Windows Phone camera roll.
public SavePictureToCameraRoll ( string name, byte imageBuffer ) : void
name string The name to use for the new picture.
imageBuffer byte The picture to save, provided as a byte array.
Результат void