Class VectorImageUtil
Class that used to export vector images into Images.
Inheritance
System.Object
VectorImageUtil
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class VectorImageUtil : Object
Constructors
VectorImageUtil()
Declaration
public VectorImageUtil()
Methods
ImportXaml(ImageSource, FlowDocument)
Imports the Xaml contents.
Declaration
public static Visual ImportXaml(ImageSource imageSourceContent, FlowDocument document)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.ImageSource | imageSourceContent | |
System.Windows.Documents.FlowDocument | document |
Returns
Type |
---|
System.Windows.Media.Visual |
SaveImage(String, FrameworkElement)
Saves the image.
Declaration
public static void SaveImage(string fileName, FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the file. |
System.Windows.FrameworkElement | element | The element. |
SaveXAML(String, ImageSource)
Saves the XAML.
Declaration
public static void SaveXAML(string fileName, ImageSource imageContent)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the file. |
System.Windows.Media.ImageSource | imageContent | Content of the image. |