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

TdxCustomImageSlider.OnGetThumbnail Event

In This Article

Enables you to provide a custom thumbnail for a specified image.

#Declaration

Delphi
property OnGetThumbnail: TdxImageSliderGetThumbnailEvent read; write;

#Remarks

This event is fired once for each image thumbnail being scrolled into view within the image slider’s preview panel.

The Sender parameter references the slider control that fired the event.

The AFrameIndex parameter specifies the zero-based index of an image whose thumbnail is to be provided. This index matches the image’s index within the collection assigned to the Images or MultiFrameImage property.

Pass a custom thumbnail image as the AThumbnail parameter. This thumbnail is automatically scaled to the size specified by the image slider’s PreviewOptions.ThumbnailSize property. If nil is passed as the AThumbnail parameter, the thumbnail is created based on the source image, maintaining its aspect ratio.

See Also