A newer version of this page is available. Switch to the current version.

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.v19.1.dll

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