comGetPicture {rcom}R Documentation

Get the clipboard contents as IPictureDisp Object

Description

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.

Usage

comGetPicture()

Arguments

Value

comGetObject returns an object of class "COMObject".

Author(s)

Thomas Baier

Examples

## Not run: win.metafile()
## Not run: plot(sin(1:100))
## Not run: dev.off()
## Not run: pic<-comGetPicture()

[Package rcom version 1.5-1 Index]