I put a bitmap on the clipboard with:
Clipboard.assign(bmp);
and I can paste it into other applications but when I try to retrieve it with my own Lazarus program, it has the format CF_Picture and
if Clipboard.HasFormat(CF_Picture) then begin
pic:=tpicture.Create;
pic.LoadFromClipboardFormat(CF_Picture);
generates the exception:
Exception class "EInvalidGraphic" at $00000000005BAF81 with message "Unsupported clipboard format: Delphi Picture"
What am I missing? Any tip is highly appreciated.
I use Lazarus 1.0.12, Ubuntu 12.04 on an AMD64.
Håkan