Skip to main content

SvgImageHelper.CreateImage(Stream) Method

Creates an SVG image.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public static SvgImage CreateImage(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A stream 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(stream);
return WpfSvgRenderer.CreateImageSource(image, 1d, null, null, true);
See Also