FMX.MultiResBitmap.TCustomBitmapItem.ScaleOfBitmap
Delphi
class function ScaleOfBitmap(const SourceSize, DestinationSize: TSize): Double;
C++
__classmethod double __fastcall ScaleOfBitmap(const System::Types::TSize &SourceSize, const System::Types::TSize &DestinationSize);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.MultiresBitmap.pas FMX.MultiResBitmap.hpp |
FMX.MultiResBitmap | TCustomBitmapItem |
Description
Returns the zooming factor to use for best fit a SourceSize size bitmap into the DestinationSize rectangle.
The returned zooming factor defines the scale, which can be used to fit a source image having the size = SourceSize
into a rectangle having the size = DestinationSize
. This zooming factor guarantees that the whole source image is totally embedded into the DestinationSize rectangle.