MaintainAspect property (Thumbnail Browser Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool MaintainAspect

Delphi Syntax

MaintainAspect : Boolean

Overview

Refer to Thumbnail Browser.

Remarks

(published property, available at design time) Flag indicating if aspect ratio of the image should be maintained when generating thumbnails. When set to True, the generated thumbnail's width and height will not match both ThumbnailWidth and ThumbnailHeight if the original aspect ratio was not the same as the ratio between ThumbnailWidth and ThumbnailHeight. If you desire the thumbnail be generated with exactly the requested width and height while still maintaining, aspect ratio of the actual image, set both MaintainAspect and ForceSize to True.

Default setting is True.

See Also

Elements:

BrowseDir method, ThumbnailWidth property, ThumbnailHeight property, ForceSize property, ThumbnailBackgroundColor property, Resample property

Topics:

Raster Images: Displaying Images