Back to Devexpress

ImageSource Class

corelibraries-devexpress-dot-xtraprinting-dot-drawing-633b3d79.md

latest4.9 KB
Original Source

ImageSource Class

An object that stores a specified image.

Namespace : DevExpress.XtraPrinting.Drawing

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

NuGet Package : DevExpress.Printing.Core

Declaration

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

The following members return ImageSource objects:

Show 19 links

LibraryRelated API Members
Cross-Platform Class LibraryCheckBoxGlyphCollection.Item[CheckBoxState]
ImageBrick.ImageSource
ImageEditingField.ImageSource
ImageEditingField.InitialImageSource
ImageItem.ImageSource
ImageItemCollection.GetImageSource(String)
ImageSource.Clone()
ImageSource.FromFile(String)
PageWatermark.ActualImageSource
PageWatermark.ImageSource
PdfSignatureOptions.ImageSource
QRCodeGenerator.Logo
Office File APIQRCodeOptions.Logo
.NET Reporting ToolsCheckBoxGlyphs.Checked
CheckBoxGlyphs.Indeterminate
CheckBoxGlyphs.Item[CheckBoxState]
CheckBoxGlyphs.Unchecked
XRPictureBox.ImageSource
XRWatermark.ImageSource

Remarks

Create an ImageSource object to store an image. This object can store an image of the DevExpress.Drawing.DXImage and SVG image types. To pass an image, use one of the following methods:

MethodDescription
ImageSource(SvgImage svgImage) constructorCreates an ImageSource object and sets its ImageSource.SvgImage property to the image passed as a parameter.
ImageSource(DXImage image) constructorCreates an ImageSource object and sets its ImageSource.Image property to the image passed as a parameter.
FromFile(string filename) static methodCreates 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 DevExpress.Drawing.DXImage type image. Use the ImageSource object’s properties to get an image. When one of these properties is specified, the others are set to null:

ImageSource.ImageReturns an image.ImageSource.SvgImageReturns an SVG image.

Tip

Call the DXImageExtensions.ConvertToGdiPlusImage(DXImage) method to obtain the System.Drawing.Image instance from the DXImage object.

Inheritance

Object ImageSource

See Also

ImageSource Members

DevExpress.XtraPrinting.Drawing Namespace