Author: Tomas Rutkauskas
How to store the content of the clipboard in a file
Answer:
1 { ... }2 if Clipboard.HasFormat(CF_BITMAP) then3 begin4 bmp := TBitmap.Create;
5 try6 Clipboard.AssignTo(bmp);
7 bmp.SaveToFile(filename);
8 finally9 bmp.free
10 end;
11 end;
12 { ... }