Show: Delphi C++
Display Preferences

Vcl.Graphics.TCanvas.CopyRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CopyRect(const Dest: TRect; Canvas: TCanvas;  const Source: TRect);

C++

void __fastcall CopyRect(const System::Types::TRect &Dest, TCanvas* Canvas, const System::Types::TRect &Source);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCanvas

Description

Copies part of an image from another canvas into the canvas.

Use CopyRect to transfer part of the image on another canvas to the image of the TCanvas object. Dest specifies the rectangle on the canvas where the source image will be copied. The Canvas parameter specifies the canvas with the source image. Source specifies a rectangle bounding the portion of the source canvas that will be copied.

The portion of the source canvas is copied using the mode specified by CopyMode.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance