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
valueobjectThe SVG source file path or URI. Can be a string or Uri.
targetTypeTypeThe type of the binding target property (should be BitmapImage).
parameterobjectAn optional converter parameter specifying an alternative SVG source path. If provided, this takes precedence over
value.cultureCultureInfoThe culture to use in the converter (not used).
Returns
- object
A BitmapImage if the conversion is successful; otherwise, null.