TdxFilePreviewImageBasedHandler Class
The preview handler for files that can be displayed as images.
Declaration
TdxFilePreviewImageBasedHandler = class abstract(TdxFilePreviewCustomHandler)
Remarks
This class allows you to display images in the preview pane.
The TdxFilePreviewImageBasedHandler class members allow you to do the following:
Initialize the preview handler (Initialize).
Enable or disable the preview handler for different file extensions (Register and Unregister).
Obtain the full path to the file for which the preview is displayed (FileName).
Draw the preview of the focused file (DrawPreview).
Identify if the preview handler supports the initialization in a separate thread (RunInThread).
Get the dimensions of the source image (Height, GetHeight, Width, and GetWidth).
Obtain if the preview handler keeps the aspect ratio of displayed images (KeepAspectRatio).
Identify if the preview handler draws a shadow under the displayed image (ShowShadow).
Do not use this class directly. Inherit a class from the TdxFilePreviewImageBasedHandler class and override the following members to create a custom file preview handler:
Call the newly created preview handler’s Register procedure before the dialog is invoked to enable the custom preview for a file extension. If the preview handler is no longer needed, call the Unregister procedure to disable it.