dim.BitmapImage {R.image}R Documentation

Gets the dimension of the image

Description

Gets the dimension of the image as a triplet, where the first integer is the height of the image, the second is the width of the image and the third is the number of bitplanes.

Usage

## S3 method for class 'BitmapImage':
dim(...)

Arguments

... Not used.

Value

Returns a vector of three non-negative integers.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see BitmapImage.

Examples

   # Read the images 'logosm.ppm' of size 51x38.
   logo <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))

   print(dim(logo))   # 51 38 8
  

[Package R.image version 0.2.3 Index]