?
Danke an alle!
Habs nun doch geschafft:
[code]
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#include <jpeg.hpp>
TForm1 *Form1;
TRect Quelle,Ziel;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Ziel=Rect(0,0,Image1->Width,Image1->Height);
Quelle=Rect(250,250,Image1->Width+250,Image1->Height+250);
TJPEGImage *JPGBild = new TJPEGImage ;
OpenDialog1->Execute();
JPGBild->LoadFromFile(OpenDialog1->FileName);
Graphics::TBitmap *BildBitmap = new Graphics::TBitmap;
BildBitmap->Assign(JPGBild);
// kopieren
Image1->Canvas->CopyRect(Ziel, BildBitmap->Canvas, Quelle);
}