Skip to main content

TdxFilePreviewImageBasedHandler.KeepAspectRatio Method

Indicates if the preview handler keeps the aspect ratio of displayed images.

Declaration

function KeepAspectRatio: Boolean; virtual;

Returns

Type Description
Boolean

True if the preview handler keeps the aspect ratio of displayed images; otherwise, False.

Remarks

The built-in KeepAspectRatio function always returns True. You can override this function in a TdxFilePreviewImageBasedHandler class descendant and return False to change the aspect ratio of displayed images.

See Also