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.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public ImageSource(
    SvgImage svgImage


Name Type Description
svgImage SvgImage

An SVG image that the ImageSource object stores.


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