FMX.MultiResBitmap.RegisterScaleName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RegisterScaleName(Scale: Single; Name: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall RegisterScaleName(float Scale, System::UnicodeString Name);

Properties

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

Description

Registers the specified TScaleName named scale in the TScaleList list of mandatory named scales.

The specified Scale and Name (scale name) are fields of the TScaleName record. If a named scale with the specified Scale already exists in the ScaleList list, then RegisterScaleName substitutes the existing named scale with the specified one. Otherwise RegisterScaleName appends the specified named scale to the end of the ScaleList list of mandatory named scales.

Bitmap items for mandatory scales cannot be deleted from a multi-resolution bitmap. Therefore, in the MultiResBitmap Editor Delete only clears the image of the selected mandatory bitmap item entry.

RegisterScaleName returns True if the specified named scale is successfully added to the TScaleList list of mandatory named scales. Otherwise, RegisterScaleName returns False.

See Also