DXImage Class
Base class for images in DevExpress controls.
Namespace: DevExpress.Drawing
Assembly: DevExpress.Drawing.v24.2.dll
Declaration
public abstract class DXImage :
IDisposable,
IEquatable<DXImage>
Public MustInherit Class DXImage
Implements IDisposable,
IEquatable(Of DXImage)
Related API Members
The following members return DXImage objects:
Library | Related API Members |
---|---|
Cross-Platform Class Library | ChartImage.DXImage |
CrosshairLabelElement.DXMarkerImage | |
CustomDrawSeriesEventArgs.LegendCheckBoxDXImage | |
CustomDrawSeriesEventArgsBase.DXLegendMarkerImage | |
DXBitmap.Clone() | |
DXImage.Clone() | |
DXImage.FromBase64String(String) | |
DXImage.FromStream(Stream) | |
DXSvgImage.Clone() | |
DXTextureBrush.Image | |
ImageSource.Image | |
IXlPicture.DXImage | |
SvgBitmap.RenderDXImage(Size, ISvgPaletteProvider) | |
WinForms Controls | ChartImageModel.DXImage |
ImageIndicatorComponent.DXImage | |
StateImageIndicatorComponent.DXImage | |
Office File API | OfficeImage.DXImage |
PdfGraphicsAcroFormSignatureField.ContentDXImage | |
XAF: Cross-Platform .NET App UI & Web API | ImageInfo.Image |
ImageLoader.LoadFromFullResource(Assembly, String) | |
ImageLoader.LoadFromResource(Assembly, String) | |
ITreeNodeImageProvider.GetImage(out String) | |
.NET Multi-platform App UI | PdfSelectedContent.Image |
Related API Members
The following members return DXImage objects:
Library | Related API Members |
---|---|
Cross-Platform Class Library | ChartImage.DXImage |
CrosshairLabelElement.DXMarkerImage | |
CustomDrawSeriesEventArgs.LegendCheckBoxDXImage | |
CustomDrawSeriesEventArgsBase.DXLegendMarkerImage | |
DXBitmap.Clone() | |
DXImage.Clone() | |
DXImage.FromBase64String(String) | |
DXImage.FromStream(Stream) | |
DXSvgImage.Clone() | |
DXTextureBrush.Image | |
ImageSource.Image | |
IXlPicture.DXImage | |
SvgBitmap.RenderDXImage(Size, ISvgPaletteProvider) | |
WinForms Controls | ChartImageModel.DXImage |
ImageIndicatorComponent.DXImage | |
StateImageIndicatorComponent.DXImage | |
Office File API | OfficeImage.DXImage |
PdfGraphicsAcroFormSignatureField.ContentDXImage | |
XAF: Cross-Platform .NET App UI & Web API | ImageInfo.Image |
ImageLoader.LoadFromFullResource(Assembly, String) | |
ImageLoader.LoadFromResource(Assembly, String) | |
ITreeNodeImageProvider.GetImage(out String) | |
.NET Multi-platform App UI | PdfSelectedContent.Image |
Related API Members
The following members return DXImage objects:
Remarks
The following code examples create an image object from source:
To use an image locally:
using (FileStream source = new FileStream(sourceFile, FileMode.Open)) { using (DXImage image = DXImage.FromStream(source)) { // USE AN IMAGE HERE } }
To use the image globally, you do not have to dispose of either the stream or the image:
DXImage image = DXImage.FromStream(new FileStream(sourceFile, FileMode.Open));
Important
Do not confuse the
DXImage
class with the DXImage component.
Inheritance
See Also