Skip to main content

ImageSource(Image) Constructor

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

Namespace: DevExpress.XtraPrinting.Drawing

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

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


public ImageSource(
    Image image


Name Type Description
image Image

An image the ImageSource object stores.



Use the ImageSource.ImageSource(DXImage) overload for .NET 7 or in non-Windows environments.

Use this constructor to store an image of the System.Drawing.Image type.

using System.Drawing;
using DevExpress.XtraPrinting.Drawing;
Image myImage = Image.FromFile(@"../../myImage.png");
ImageSource = new ImageSource(myImage);
See Also