1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
TControlCanvas *pCn;
TControlCanvas *pCn1;
pCn = new TControlCanvas();
pCn->Control = Form2->Image1;
pCn1 = new TControlCanvas();
pCn1->Control = Form1->Image1;
// CopyRect(const TRect &Dest, TCanvas* CanvasSrc, const TRect &Source);
TRect DestRect, DestRect1, SrcRect, SrcRect1;
DestRect = Rect(0,0,429,100);
SrcRect = Rect(0,0,429, 100);
DestRect1 = Rect(0,201,429,501);
SrcRect1 = Rect(0,201,429, 501);
Form2->Show();
pCn->CopyRect(DestRect, pCn1, SrcRect);
pCn->CopyRect(DestRect1, pCn1, SrcRect1); |
Partager