FMX.MultiResBitmap.TCustomMultiResBitmap.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add: TCustomBitmapItem;

C++

HIDESBASE TCustomBitmapItem* __fastcall Add();

Properties

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

Description

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