Dimitris Giannitsaros Guest
|
Posted: Fri Jun 25, 2004 1:02 am Post subject: WMF/EMF to clipboard |
|
|
Hi all,
I am trying to copy wmf and emf images to the clipboard. I have read
anything i could find on usenet and this is the code i am using:
Metafile := TMetafile.Create;
Metafile.LoadFromFile(ImgPath);
Metafile.Enhanced := True;
Metafile.Width := ImgWidth;
Metafile.Height := ImgHeight;
MetafileCanvas := TMetafileCanvas.Create(Metafile,
MainForm.Canvas.Handle);
MetafileCanvas.Draw(0, 0, Metafile);
MetafileCanvas.Free;
Clipboard.Assign(Metafile);
Metafile.Free;
This works fine on any machines i could try (with WindowsXP and 2000).
Now a user of my program (plug: www.daremon.gr/cheez/ freeware image
cataloguing tool) reports a problem: when copying WMF files, only part
of the WMF is being copied (he can see this part of the image in
ClipboardViewer and only this part gets pasted in Word or CorelDraw).
He is using Windows 2000.
Does anyone have any ideas what i should try?
Regards,
Dimitris
|
|