save_bmp {screenshot} | R Documentation |
Save an image as a BMP file
Description
Save an image as a BMP file
Usage
save_bmp(image_data, path)
Arguments
image_data |
A raster image data object, such as an array of pixel values or an R object representing an image. |
path |
The path to the file to be saved. |
Value
Saves the image as a BMP file at the specified path.
Examples
## Not run:
# Create an image data object
image_data <- matrix(rnorm(100), ncol = 10)
# Save the image as a BMP file
save_bmp(image_data, "image.bmp")
## End(Not run)
[Package screenshot version 0.9.1 Index]