Back to Devexpress

ThumbnailImageEventArgs.CreateThumbnailImage(Image) Method

windowsforms-devexpress-dot-utils-dot-thumbnailimageeventargs-dot-createthumbnailimage-x28-system-dot-drawing-dot-image-x29.md

latest2.8 KB
Original Source

ThumbnailImageEventArgs.CreateThumbnailImage(Image) Method

Creates a thumbnail image that will be assigned to an item that supports the asynchronous image load feature.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public Image CreateThumbnailImage(
    Image image
)
vb
Public Function CreateThumbnailImage(
    image As Image
) As Image

Parameters

NameTypeDescription
imageImage

An Image that will be transformed to the thumbnail image.

|

Returns

TypeDescription
Image

An Image created by this method.

|

Remarks

The CreateThumbnailImage method takes an image as its first argument and scales it to the specific size. The size is stored within the ThumbnailImageEventArgs.DesiredThumbnailSize property or can be passed directly to the CreateThumbnailImage method overload as the second parameter. The resulting image is called a thumbnail, and is later assigned using the ThumbnailImageEventArgs.ThumbnailImage property to an element that fired the GetThumbnailImage event. See the BaseGallery.GetThumbnailImage and WinExplorerView.GetThumbnailImage events to learn more.

See Also

DesiredThumbnailSize

ThumbnailImage

BaseGallery.GetThumbnailImage

WinExplorerView.GetThumbnailImage

ThumbnailImageEventArgs Class

ThumbnailImageEventArgs Members

DevExpress.Utils Namespace