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