Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#Declaration

public Image CreateThumbnailImage(
    Image image
)

#Parameters

Name Type Description
image Image

An Image that will be transformed to the thumbnail image.

#Returns

Type Description
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