Back to Devexpress

XRChart.ImageType Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrchart-08b95524.md

latest2.7 KB
Original Source

XRChart.ImageType Property

Specifies how XRChart contents are rendered.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(ChartImageType.Metafile)]
[SRCategory(ReportStringId.CatAppearance)]
public ChartImageType ImageType { get; set; }
vb
<DefaultValue(ChartImageType.Metafile)>
<SRCategory(ReportStringId.CatAppearance)>
Public Property ImageType As ChartImageType

Property Value

TypeDefaultDescription
ChartImageTypeMetafile

A ChartImageType enumeration value, specifying how a chart is rendered in a report.

|

Available values:

NameDescription
Metafile

The control is rendered as a metafile. In this case the quality of the rendered image is always good, but in some cases some details of the control may be lost.

| | Bitmap |

The control is rendered as a bitmap. In this case the quality of the rendered image is sometimes poor, but it allows a control to be drawn more precisely.

| | Svg |

The control is rendered as vector graphics.

|

Remarks

Use the ImageType property to specify whether a chart should be internally rendered as a metafile, an SVG image, or bitmap in a report.

  • Bitmap Image : A raster format that is ideal for high-quality, static images but may lose clarity when resized; it is universally supported across platforms, making it a good choice for fixed-size displays.
  • Metafile : A Windows-only vector format that maintains sharpness when scaled, perfect for high-resolution printing or resizing on Windows-based systems, but may not display correctly on non-Windows platforms.
  • SVG : A cross-platform, scalable vector format ideal for web and modern applications on all platforms; this format allows images to be resized without losing quality, especially in interactive or responsive layouts.

See Also

XRChart Class

XRChart Members

DevExpress.XtraReports.UI Namespace