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

SvgImageHelper.CreateImage(Stream) Method

Creates an SVG image.

Namespace: DevExpress.Xpf.Core

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

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

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