ImageSource Class

An object that stores a specified image.

Namespace: DevExpress.XtraPrinting.Drawing

Assembly: DevExpress.Printing.v19.2.Core.dll

Declaration

public class ImageSource :
    IDisposable,
    ICloneable
Public Class ImageSource
    Implements IDisposable,
               ICloneable

Remarks

Create an ImageSource object to store an image. This object can take an image of the System.Drawing.Image type or an SVG image. To pass an image, use one of the following methods:

Method Description
ImageSource(SvgImage svgImage) constructor Creates an ImageSource object and sets its ImageSource.SvgImage property to the image passed as a parameter.
ImageSource(Image image) constructor Creates an ImageSource object and sets its ImageSource.Image property to the image passed as a parameter.
FromFile(string filename) static method Creates an ImageSource object and specifies its ImageSource.SvgImage or ImageSource.Image property depending on the image stored in the specified file.

An ImageSource object stores either an SVG or System.Drawing.Image type image. Use the ImageSource object's ImageSource.SvgImage property or the ImageSource.Image property to get an SVG or System.Drawing.Image type image. When one of these properties is specified, the other one is set to null.

Inheritance

Object
ImageSource
See Also