A newer version of this page is available. Switch to the current version.

ImageSource Class

An object that stores a specified image.

Namespace: DevExpress.XtraPrinting.Drawing

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

Declaration

[TypeConverter(typeof(ImageSourceTypeConverter))]
public class ImageSource :
    IDisposable
<TypeConverter(GetType(ImageSourceTypeConverter))>
Public Class ImageSource
    Implements IDisposable

Related API Members

The following members accept/return ImageSource objects:

Library Related API Members
Cross-Platform Class Library ImageBrick.ImageSource
ImageEditingField.ImageSource
ImageEditingField.InitialImageSource
ImageSource.FromFile(String)
QRCodeGenerator.Logo
Reporting XRPictureBox.ImageSource

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