BitmapImage {R.image}R Documentation

The BitmapImage class

Description

Package: R.image
Class BitmapImage

Object
~~|
~~+--BitmapImage

Directly known subclasses:
GrayImage, MonochromeImage, RGBImage

public abstract static class BitmapImage
extends Object

The abstract but static class BitmapImage provides methods to read, write and display bitmap images.

Usage

BitmapImage()

Arguments

None.

Methods

Methods:
as.character Gets a string description of the image.
depth Gets the number of bitplanes of the image.
dim Gets the dimension of the image.
getColorMap Gets the color map of the image.
getColors Gets the color matrix.
height Gets the height of the image.
image Displays the image.
plot Plots the image.
points Places the image on a existing plot as points.
read Reads an image from a file.
readJPEG -
readUsingExternal -
width Gets the width of the image.
write Writes the image to a file.
writeBMP -
writeEPS -
writeJPG -
writePBM -
writePGM -
writePNG -
writePPM -
writeRGB -

Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save

Author(s)

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

See Also

For converting images in of file formats see ImageMagick (http://www.imagemagick.org), which is free and available for many differt platforms.

Examples

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

   image(logo)
 

[Package R.image version 0.2.3 Index]