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

Declaration

public ImageSource(
    Image image
)
Public Sub New(
    image As Image
)

Parameters

Name Type Description
image Image

An image the ImageSource object stores.

Remarks

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