FMX.MultiResBitmap.TCustomBitmapItem.RectOfBitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function RectOfBitmap(const SourceSize, DestinationSize: TSize): TRect;

C++

__classmethod System::Types::TRect __fastcall RectOfBitmap(const System::Types::TSize &SourceSize, const System::Types::TSize &DestinationSize);

Properties

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

Description

Returns the sub-rectangle of the rectangle having the DestinationSize size, that is occupied by the SourceSize size bitmap, which is scrolled to best fit the DestinationSize rectangle.

The returned sub-rectangle is aligned to the center of the DestinationSize rectangle.

See Also