Skip to main content
A newer version of this page is available. .

SvgImageHelper.CreateImage(Uri) Method

Creates an SVG image.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public static SvgImage CreateImage(
    Uri uri
)

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

The following code sample shows how to specify an SVG image:

var image = SvgImageHelper.CreateImage(absoluteUri);
return WpfSvgRenderer.CreateImageSource(image, 1d, null, null, true);

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.

See Also