C# 클래스 Cimbalino.Phone.Toolkit.Services.MediaLibraryService

Represents an implementation of the IMediaLibraryService.
상속: IMediaLibraryService
파일 보기 프로젝트 열기: Cimbalino/Cimbalino-Phone-Toolkit

공개 메소드들

메소드 설명
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