Skip to main content

ImageSource(SvgImage) Constructor

Creates an ImageSource object and sets its ImageSource.SvgImage property to the image passed as a parameter.

Namespace: DevExpress.XtraPrinting.Drawing

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public ImageSource(
    SvgImage svgImage
)

Parameters

Name Type Description
svgImage SvgImage

An SVG image that the ImageSource object stores.

Remarks

Use this constructor to store an SVG image.

using DevExpress.Utils.Svg;
using DevExpress.XtraPrinting.Drawing;
//...
SvgImage svgImage = SvgImage.FromFile(@"../../myImage.svg");
ImageSource = new ImageSource(svgImage);
See Also