C# Class Cimbalino.Phone.Toolkit.Services.MediaLibraryService

Represents an implementation of the IMediaLibraryService.
Inheritance: IMediaLibraryService
Mostrar archivo Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

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

Method Details

GetPictureFromToken() public method

Retrieves a picture from the device's media library based on a picture token.
public GetPictureFromToken ( string token ) : Picture
token string The picture token.
return Picture

SavePicture() public method

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.
return void

SavePicture() public method

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.
return void

SavePictureToCameraRoll() public method

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 .
return void

SavePictureToCameraRoll() public method

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.
return void