SvgImageHelper.CreateImage(Uri) Method
Creates an SVG image.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
uri | Uri | A URI that represents an SVG image. |
Returns
Type | Description |
---|---|
SvgImage | An object that represents an SVG image. |
Remarks
Tip
Topic: SVG Images
The following code sample shows how to specify an SVG image:
var image = SvgImageHelper.CreateImage(absoluteUri);
return WpfSvgRenderer.CreateImageSource(image, 1d, null, null, true);
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateImage(Uri) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.