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


public ImageSource(
    Image image
Public Sub New(
    image As 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