From RAD Studio API Documentation
Jump to: navigation, search



TLayer = class (TCollectionItem)


class PASCALIMPLEMENTATION TLayer : public System::Classes::TCollectionItem


Type Visibility Source Unit Parent
class public
FMX.ImgList FMX.ImgList


Represents a layer in a TLayers collection.

TLayer contains information about a source image that is used during drawing of a final image in an image list.

Each layer stores a case-insensitive Name of an image from the Source collection and a MultiResBitmap multi-resolution bitmap. Also, each layer stores SourceRect coordinates of a section of this multi-resolution bitmap (always in the scale 1 independently of the scale of the bitmap to be used). Only this section of the multi-resolution bitmap is drawn in the final image.

A TLayers collection holds a group of TLayer layers. New TLayer layer is appended to the TLayers collection by the Add method. Each TLayer has a Layers property that points to the TLayers collection to which the layer belongs.

The TLayer class inherits the basic functionality from the TCollectionItem class.

See Also