crop.RGBImage {R.image}R Documentation

Crops the image

Description

Crops the image by replacing it with a subimage of itself. Note that the old image is lost.

Usage

## S3 method for class 'RGBImage':
crop(this, width=width(this), height=height(this), xoffset=0, yoffset=0, ...)

Arguments

width,height The width and height (integers) of the subimage to be extracted.
xoffset,yoffset The x and y offset (integers) where the upper left corner of the subimage is.
... Not used.

Value

Returns itself.

Author(s)

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

See Also

For more information see RGBImage.


[Package R.image version 0.2.3 Index]