FMX.Objects.TImage.ItemForCurrentScale

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ItemForCurrentScale(const IncludeEmpty: Boolean): TCustomBitmapItem;

C++

Fmx::Multiresbitmap::TCustomBitmapItem* __fastcall ItemForCurrentScale(const bool IncludeEmpty);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TImage

Description

Tries to find the item in MultiResBitmap that has the most suitable scale.

If the IncludeEmpty parameter is True, the returned item can be empty. Otherwise, the returned item cannot be empty. Empty items are ignored.

If the search is successful, ItemForCurrentScale returns the TCustomBitmapItem, otherwise ItemForCurrentScale returns nil.

See Also