FMX.Graphics.TBitmap.CopyFromBitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CopyFromBitmap(const Source: TBitmap); overload;
procedure CopyFromBitmap(const Source: TBitmap; SrcRect: TRect; DestX, DestY: Integer); overload;

C++

void __fastcall CopyFromBitmap(TBitmap* const Source)/* overload */;
void __fastcall CopyFromBitmap(TBitmap* const Source, const System::Types::TRect &SrcRect, int DestX, int DestY)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TBitmap

Description

Copies a rectangular area from a specified bitmap to the current bitmap.

Source specifies the source TBitmap.

SrcRect specifies the rectangular area to be copied from Source.

The DstX and DstY parameters specify the coordinates of the point within the current bitmap where the SrcRect area is copied.

Make sure that the Source and the current bitmap are initialized before calling the CopyFromBitmap method.

See Also