C# Class WinRTXamlToolkit.Imaging.WriteableBitmapGrayscaleExtension

WriteableBitmap extensions to remove the color from the image.
Datei anzeigen Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
Grayscale ( this target ) : WriteableBitmap

Removes all color from the specified bitmap.

Grayscale ( this target, double amount ) : WriteableBitmap

Removes color from the specified bitmap.

Method Details

Grayscale() public static method

Removes all color from the specified bitmap.
public static Grayscale ( this target ) : WriteableBitmap
target this The target bitmap.
return Windows.UI.Xaml.Media.Imaging.WriteableBitmap

Grayscale() public static method

Removes color from the specified bitmap.
public static Grayscale ( this target, double amount ) : WriteableBitmap
target this The target bitmap.
amount double /// The 0..1 range amount of color to remove /// from the bitmap where /// 0 does not affect the bitmap and /// 1 makes the bitmap completely grayscale. ///
return Windows.UI.Xaml.Media.Imaging.WriteableBitmap