width.BitmapImage {R.image}R Documentation

Gets the width of the image

Description

Gets the width of the image (in pixels).

Usage

## S3 method for class 'BitmapImage':
width(this, ...)

Arguments

... Not used.

Value

Returns an integer.

Author(s)

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

See Also

See also *height() and *dim(). 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(width(logo))  # 38
  

[Package R.image version 0.2.3 Index]