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


public ImageSource(
    Image image


Name Type Description
image Image

An image the ImageSource object stores.


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