Copy Graphics to clipboard

31 views
Skip to first unread message

Mohammed Mostafa

unread,
May 15, 2012, 8:27:12 AM5/15/12
to dislin-users
Is there a command that automatically copies the graphics displayed
on the dislin windows to clipboard so that I can may be paste
somewhere else (say. Paint or Photoshop ).

"Armin Rauthe-Schöch"

unread,
May 15, 2012, 9:02:13 AM5/15/12
to dislin...@googlegroups.com
Hi,
I don't know whether DISLIN has such a command. If you plot into an application window, the application should be able to copy the window content to the clipboard. For Windows, copying a graphics to the clipboard is more or less the same than plotting into a window, just that the device context is a different one.

You could maybe also use the Elementary Image Routines (see DISLIN documentation:
http://www.mps.mpg.de/dislin/kap9.html#section_9) to access the image data directly (and then use your application to transfer it to the Windows clipboard).

What you could certainly do with DISLIN is to save the plot as a graphics file, say in WMF format (which is what the Windows clipboard uses) and then open the file with Paint or Photoshop.


Good luck!
Armin

--
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-6131-305-4123
Fax. +49-6131-305-4009
Email: armin.raut...@mpic.de
Reply all
Reply to author
Forward
0 new messages