FMX.ExtCtrls.TImageViewer.BestFit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BestFit;

C++

void __fastcall BestFit();

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.ExtCtrls.pas
FMX.ExtCtrls.hpp
FMX.ExtCtrls TImageViewer

Description

Modifies the dimensions of the image so that it best fits in the control.

BestFit sets the BitmapScale property to the maximum value for which neither the bitmap's height nor width value is greater than the TImageViewer control's correspondent property.

Note: The BestFit procedure preserves the bitmap's aspect ratio (does not modify the ratio between the bitmap's Width and Height properties).

See Also