C# Class System.Windows.Media.Imaging.WriteableBitmapMediaLibraryExtensions

WriteableBitmap extension for WP7 media library
ファイルを表示 Open project: disbitski/DoodlePad

Public Methods

Method Description
SaveToMediaLibrary ( this bitmap, string name ) : void

Saves the WriteableBitmap encoded as JPEG to the Media library using the best quality of 100.

SaveToMediaLibrary ( this bitmap, string name, int quality ) : void

Saves the WriteableBitmap encoded as JPEG to the Media library.

Method Details

SaveToMediaLibrary() public static method

Saves the WriteableBitmap encoded as JPEG to the Media library using the best quality of 100.
public static SaveToMediaLibrary ( this bitmap, string name ) : void
bitmap this The WriteableBitmap to save.
name string The name of the destination file.
return void

SaveToMediaLibrary() public static method

Saves the WriteableBitmap encoded as JPEG to the Media library.
public static SaveToMediaLibrary ( this bitmap, string name, int quality ) : void
bitmap this The WriteableBitmap to save.
name string The name of the destination file.
quality int The quality for JPEG encoding in the range 0-100, where 100 is best quality size.
return void