Back to Devexpress

SheetThumbnailOptions.Resolution Property

officefileapi-devexpress-dot-spreadsheet-dot-sheetthumbnailoptions-0b417e0c.md

latest1.7 KB
Original Source

SheetThumbnailOptions.Resolution Property

Specifies the image resolution (in DPI).

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public float Resolution { get; set; }
vb
Public Property Resolution As Single

Property Value

TypeDescription
Single

A positive DPI value. The default value is 96.

|

Remarks

The following example demonstrates how to save a chart sheet as an image and specify the output image resolution:

csharp
using DevExpress.Spreadsheet;
// ...

chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 1600, 900, 
    new SheetThumbnailOptions() { Resolution = 192 });
vb
Imports DevExpress.Spreadsheet
' ...

chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 1600, 900, 
    New SheetThumbnailOptions() With {.Resolution = 192})

See Also

SheetThumbnailOptions Class

SheetThumbnailOptions Members

DevExpress.Spreadsheet Namespace