powered by
Save an image as a BMP file
save_bmp(image_data, path)
Saves the image as a BMP file at the specified path.
A raster image data object, such as an array of pixel values or an R object representing an image.
The path to the file to be saved.
if (FALSE) { # 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") }
Run the code above in your browser using DataLab