Back to Devexpress

WinExplorerViewOptionsImageLoad.DesiredThumbnailSize Property

windowsforms-devexpress-dot-xtragrid-dot-winexplorer-dot-winexplorerviewoptionsimageload-6305ca82.md

latest3.6 KB
Original Source

WinExplorerViewOptionsImageLoad.DesiredThumbnailSize Property

Gets or sets the desired size of thumbnail images, created during Asynchronous Image Loading.

Namespace : DevExpress.XtraGrid.WinExplorer

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public Size DesiredThumbnailSize { get; set; }
vb
Public Property DesiredThumbnailSize As Size

Property Value

TypeDescription
Size

A Size structure that is the desired thumbnail image size. The default value is Size.Empty , which is equivalent to 256x256.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DesiredThumbnailSize
WinExplorerView

.OptionsImageLoad .DesiredThumbnailSize

|

Remarks

In Asynchronous Image Load Mode, the DesiredThumbnailSize property specifies the size of automatically generated thumbnails and thumbnails generated by the ThumbnailImageEventArgs.CreateThumbnailImage method. When displaying the generated thumbnails, they are zoomed in or out to fit the display rectangle.

Note

The image size depends on the currently applied style (see WinExplorerViewOptionsView.Style):

  • 256x256 for the ExtraLarge style,
  • 96x96 for the Large style,
  • 48x48 for the Content , Medium and Tiles styles,
  • 16x16 for the Small and List styles.

You can customize the image sizes by using the WinExplorerView.OptionsViewStyles.<ViewStyle>.ImageSize property (see WinExplorerViewStyleOptions.ImageSize).

Since thumbnails are always zoomed in/out up to the current image size, setting the DesiredThumbnailSize property to a greater value has no effect.

Setting DesiredThumbnailSize property to a value less than the image size in particular styles, leads to blurry images in those styles.

See Also

GetThumbnailImage

Asynchronous Image Load in Data Grid

WinExplorerViewOptionsImageLoad Class

WinExplorerViewOptionsImageLoad Members

DevExpress.XtraGrid.WinExplorer Namespace