ImageConverter.Convert Method (ImageSource, Object, CultureInfo)
Converts an ImageSource into an Image.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Protected Overrides Function Convert ( _
inputImage As ImageSource, _
parameter As Object, _
culture As CultureInfo _
) As Image
'Utilisation
Dim inputImage As ImageSource
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As Image
returnValue = Me.Convert(inputImage, _
parameter, culture)
protected override Image Convert(
ImageSource inputImage,
Object parameter,
CultureInfo culture
)
protected:
virtual Image^ Convert(
ImageSource^ inputImage,
Object^ parameter,
CultureInfo^ culture
) override
abstract Convert :
inputImage:ImageSource *
parameter:Object *
culture:CultureInfo -> Image
override Convert :
inputImage:ImageSource *
parameter:Object *
culture:CultureInfo -> Image
protected override function Convert(
inputImage : ImageSource,
parameter : Object,
culture : CultureInfo
) : Image
Parameters
- inputImage
Type: System.Windows.Media.ImageSource
- parameter
Type: System.Object
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.Windows.Controls.Image
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.