Back to Devexpress

ImageExportOptions.Format Property

corelibraries-devexpress-dot-xtraprinting-dot-imageexportoptions-0e30f182.md

latest2.9 KB
Original Source

ImageExportOptions.Format Property

Specifies the image format for exporting a document.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public DXImageFormat Format { get; set; }
vb
Public Property Format As DXImageFormat

Property Value

TypeDescription
DXImageFormat

An object that defines the image format.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Format
ExportOptions

.Image .Format

|

Remarks

The following image formats are supported:

  • BMP
  • EMF
  • GIF
  • JPEG
  • PNG
  • SVG
  • TIFF
  • WMF

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Format property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

dxrichedit-for-wpf-how-to-print-a-document-as-a-series-of-images/CS/SaveAsImage/MainWindow.xaml.cs#L33

csharp
imgOptions.ExportMode = ImageExportMode.DifferentFiles;
imgOptions.Format = System.Drawing.Imaging.ImageFormat.Png;
imgOptions.Resolution = 150;

dxrichedit-for-wpf-how-to-print-a-document-as-a-series-of-images/VB/SaveAsImage/MainWindow.xaml.vb#L28

vb
imgOptions.ExportMode = ImageExportMode.DifferentFiles
imgOptions.Format = System.Drawing.Imaging.ImageFormat.Png
imgOptions.Resolution = 150

See Also

ImageExportOptions Class

ImageExportOptions Members

DevExpress.XtraPrinting Namespace