Compartilhar via


GrayscaleBitmapSourceConverter Class

Definition

Converts an image BitmapSource into a grayscale version of the same image.

public ref class GrayscaleBitmapSourceConverter : Microsoft::VisualStudio::PlatformUI::ValueConverter<System::Windows::Media::Imaging::BitmapSource ^, System::Windows::Media::Imaging::BitmapSource ^>
[Windows::Foundation::Metadata::WebHostHidden]
class GrayscaleBitmapSourceConverter : Microsoft::VisualStudio::PlatformUI::ValueConverter<System::Windows::Media::Imaging::BitmapSource, System::Windows::Media::Imaging::BitmapSource const &>
public class GrayscaleBitmapSourceConverter : Microsoft.VisualStudio.PlatformUI.ValueConverter<System.Windows.Media.Imaging.BitmapSource,System.Windows.Media.Imaging.BitmapSource>
type GrayscaleBitmapSourceConverter = class
    inherit ValueConverter<BitmapSource, BitmapSource>
Public Class GrayscaleBitmapSourceConverter
Inherits ValueConverter(Of BitmapSource, BitmapSource)
Inheritance
GrayscaleBitmapSourceConverter

Constructors

GrayscaleBitmapSourceConverter()

Initializes a new instance of GrayscaleBitmapSourceConverter.

Methods

Convert(BitmapSource, Object, CultureInfo)

Converts the image.

Convert(Object, Type, Object, CultureInfo)

Microsoft internal use only.

(Inherited from ValueConverter<TSource,TTarget>)
Convert(TSource, Object, CultureInfo)

Microsoft internal use only.

(Inherited from ValueConverter<TSource,TTarget>)
ConvertBack(Object, Type, Object, CultureInfo)

Microsoft internal use only.

(Inherited from ValueConverter<TSource,TTarget>)
ConvertBack(TTarget, Object, CultureInfo)

Microsoft internal use only.

(Inherited from ValueConverter<TSource,TTarget>)
ConvertCore(BitmapSource, Color)

Converts the image.

GetBiasColor(Object)

Gets the bias color.

Applies to