Back to Devexpress

ImageExportOptions.Resolution Property

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

latest2.8 KB
Original Source

ImageExportOptions.Resolution Property

Specifies the image resolution (in DPI).

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(96)]
public int Resolution { get; set; }
vb
<DefaultValue(96)>
Public Property Resolution As Integer

Property Value

TypeDefaultDescription
Int3296

An integer value, specifying the image resolution (in DPI).

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Resolution
ExportOptions

.Image .Resolution

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Resolution 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#L34

csharp
imgOptions.Format = System.Drawing.Imaging.ImageFormat.Png;
imgOptions.Resolution = 150;
imgOptions.PageRange = "1,3-5";

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

vb
imgOptions.Format = System.Drawing.Imaging.ImageFormat.Png
imgOptions.Resolution = 150
imgOptions.PageRange = "1,3-5"

See Also

ImageExportOptions Class

ImageExportOptions Members

DevExpress.XtraPrinting Namespace