comGetPicture {rcom} | R Documentation |
This function checks the contents of the (local) clipboard for an enhanced
metafile object. If found, a COM object implementing the standard COM
interface IPictureDisp
is created from the clipboard contents.
Enhanced metafiles in the clipboard are created using R's graphics functions if the device win.metafile with an empty filename is used.
You have to close the device before retrieving the picture object.
Does not work at the moment due to problems in Microsoft's IPictureDisp
.
comGetPicture()
comGetObject
returns an object of class "COMObject"
.
Thomas Baier
## Not run: win.metafile() ## Not run: plot(sin(1:100)) ## Not run: dev.off() ## Not run: pic<-comGetPicture()