Table of Contents

Method Convert

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

Convert(object, Type, object, CultureInfo)

Converts an SVG file path or URI to a BitmapImage.

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value object

The SVG source file path or URI. Can be a string or Uri.

targetType Type

The type of the binding target property (should be BitmapImage).

parameter object

An optional converter parameter specifying an alternative SVG source path. If provided, this takes precedence over value.

culture CultureInfo

The culture to use in the converter (not used).

Returns

object

A BitmapImage if the conversion is successful; otherwise, null.