Skip to main content
Table of Contents

TTMSFNCScaledBitmaps.GetBitmapByScale Method

Returns the bitmap whose scale factor best matches the requested scale, or the first bitmap if no exact match exists.

API unit family: TMSFNCTypes Declaring type: TTMSFNCScaledBitmaps

Syntax

FMX.TMSFNCTypes.hppPascalC++
function GetBitmapByScale(Scale: Single): TTMSFNCBitmap;
TTMSFNCBitmap* __fastcall GetBitmapByScale(float Scale);

Parameters

Name Description
Scale The display scale factor to look up.

Returns

The best-matching bitmap, or the first bitmap when no exact match exists.