bmp (version 0.3)

read.bmp: Open windows BMP format image files

Description

Limited to 8 bit greyscale images and 24 bit RGB images.

Usage

read.bmp(f, Verbose = FALSE)

Arguments

f

File to open

Verbose

Give verbose warnings (default FALSE)

Value

array of dims height x width x channels

Examples

Run this code
# NOT RUN {
library(pixmap)
r=read.bmp('myrgbimage.bmp')
pr=pixmapRGB(r)
r=read.bmp('mygreyimage.bmp')
pr=pixmapGrey(r)
plot(pr)
# }

Run the code above in your browser using DataLab