FMX.MultiResBitmap.TFixedMultiResBitmap.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add: TFixedBitmapItem;

C++

HIDESBASE TFixedBitmapItem* __fastcall Add();

Properties

Type Visibility Source Unit Parent
function public
FMX.MultiresBitmap.pas
FMX.MultiResBitmap.hpp
FMX.MultiResBitmap TFixedMultiResBitmap

Description

Creates a new TCustomBitmapItem bitmap item and adds it to the Items array.

FMX.MultiResBitmap.TFixedMultiResBitmap.Add inherits from FMX.MultiResBitmap.TCustomMultiResBitmap.Add. All content below this line refers to FMX.MultiResBitmap.TCustomMultiResBitmap.Add.

Creates a new TCustomBitmapItem bitmap item and adds it to the Items array.

Add creates a new TCustomBitmapItem bitmap item in the current multi-resolution bitmap. The Scale of the created bitmap item obtains the first integer value that is not used by bitmap items existing in the current multi-resolution bitmap. The created bitmap item is added to the Items array.

Add returns the created bitmap item.

The Add method in the descendant TFixedMultiResBitmap class guarantees that the added bitmap item has the TFixedBitmapItem type.

See Also