get_clipboard_image {screenshot}R Documentation

Retrieves the image from the clipboard

Description

This function works only on windows.

Usage

get_clipboard_image()

Value

A raw vector containing the image data.

Examples

## Not run: 
get_clipboard_image()

## End(Not run)

data(clipboard_sample)
head(clipboard_sample, 100)
header <- create_header(clipboard_sample)
image_data <- c(header, clipboard_sample)
path <- fs::path_temp(ext = "bmp")
save_bmp(image_data, path)
 # shell.exec(path)
fs::file_delete(path)


[Package screenshot version 0.9.1 Index]