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

Declaration

public ImageSource(
    SvgImage svgImage
)
Public Sub New(
    svgImage As 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