Autor Beitrag
91KEY8
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 105


Delphi 3
BeitragVerfasst: Di 10.10.06 17:47 
Hallo!

Wie kann ich ein Image in die Zwischenablage kopieren. Hab nur image1.Picture.SaveToClipboardFormat(); gefunden. Da muss man aber irgendwelche Parameter angeben. Wie geht das ??

mfg 91KEY8
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 10.10.06 18:36 
besser wäre:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
uses
{...}clipbrd,{...}

{...}

procedure TDeinForm.ImgToCbrd(AImage: TImage);
begin
  Clipboard.Assign(AImage.Picture);  //Bild ins Clipboard einfügen
end;

procedure TDeinForm.CbrdToImg(AImage: TImage);
begin
  AImage.Picture.Assign(Clipboard);  //Bild von der Zwischenablage nehmen
end;


viel spass damit!

Mfg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.