Condividi tramite


GrayscaleImageConverter.Convert Method (BitmapSource, Object, CultureInfo)

Does the actual conversion of BitmapSource to Image.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Protected Overrides Function Convert ( _
    inputImage As BitmapSource, _
    parameter As Object, _
    culture As CultureInfo _
) As Image
'Utilizzo
Dim inputImage As BitmapSource
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As Image

returnValue = Me.Convert(inputImage, _
    parameter, culture)
protected override Image Convert(
    BitmapSource inputImage,
    Object parameter,
    CultureInfo culture
)
protected:
virtual Image^ Convert(
    BitmapSource^ inputImage, 
    Object^ parameter, 
    CultureInfo^ culture
) override
abstract Convert : 
        inputImage:BitmapSource * 
        parameter:Object * 
        culture:CultureInfo -> Image 
override Convert : 
        inputImage:BitmapSource * 
        parameter:Object * 
        culture:CultureInfo -> Image 
protected override function Convert(
    inputImage : BitmapSource, 
    parameter : Object, 
    culture : CultureInfo
) : Image

Parameters

  • parameter
    Type: System.Object
    If set to a Color, it will be used to bias the final image

Return Value

Type: System.Windows.Controls.Image

.NET Framework Security

See Also

Reference

GrayscaleImageConverter Class

GrayscaleImageConverter Members

Convert Overload

Microsoft.VisualStudio.PlatformUI Namespace