Autor Beitrag
n-regen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 202
Erhaltene Danke: 2



BeitragVerfasst: Fr 21.07.06 17:17 
Hallo!

In meinem Programm brauche iche ine Funktion, die eine Grafik aus der Zwischenablage abspeichert.
Wie geht das?´


Vielen Dank schon im Voraus.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Fr 21.07.06 17:36 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure SaveClipboardToFile(filename:String);
  bitmap:=TBitmap.Create;
  bitmap.Assign(Clipboard);
  bitmap.SaveToFile(filename);
end;

Is ausm Kopf runtergeschrieben, also keine Garantie auf lauffähigkeit

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
n-regen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 202
Erhaltene Danke: 2



BeitragVerfasst: Sa 22.07.06 05:41 
Sieht zwar richtig aus, aber Delphi quittiert den Code mit:
[Fehler] Unit1.pas(74): E2003 Undefinierter Bezeichner: 'Clipboard'
Was muss ich ihm eingeben, damit er es kapiert?
n-regen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 202
Erhaltene Danke: 2



BeitragVerfasst: Sa 22.07.06 06:22 
Problem gelöst:

clipbrd in die uses eingetragen!