Skip to main content

TdxCustomImageSlider.OnGetThumbnail Event

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

Declaration

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