Learn R Programming

Rgnuplot (version 1.0.3)

GpimageCrop: Simple image manipulation

Description

GpimageCrop crops an image GpimageDecimate decimates an image GpimageFlip flips a png image on the X, Y or XY axis GpimagePlot displays an image file on the screen or to a chosen terminal except to a file GpimageResize resizes an image GpimageRotate rotates an image GpimageTile tiles multiple image files together into one Gpimage2PNG converts from any supported format to PNG, the file type is automatically detected Gpimage2image converts from any supported format to other format, the file type is automatically detected

Usage

GpimageCrop(fileIN, fileOUT,x1,y1,x2,y2, filetype='PNG', terminal=NULL) GpimageDecimate(fileIN, fileOUT, Xdec=2,Ydec=2, filetype='PNG', terminal=NULL) GpimageFlip(fileIN, fileOUT,flipX=TRUE,flipY=FALSE, filetype='PNG', terminal=NULL) GpimagePlot(fileIN,alpha=FALSE, backgroundColor='', filetype='', terminal=NULL) GpimageResize(fileIN, fileOUT,newWidth, newHeight, filetype='PNG', terminal=NULL) GpimageRotate(fileIN, fileOUT,degrees, filetype='PNG', terminal=NULL) GpimageTile(fileOUT, matrixFilenamesIn, vectorWidths, vectorHeights, matrixXscale=NULL, matrixYscale=NULL,alpha=FALSE, filetype='PNG', terminal=NULL) Gpimage2PNG(fileIN, fileOUT, optional256=FALSE,alpha=FALSE, backgroundColor='') Gpimage2image(fileIN, fileOUT , filetype='PNG', terminal=NULL,alpha=FALSE, backgroundColor='')

Arguments

fileIN
input file name
fileOUT
output file name
x1
x coord corner
y1
y coord corner
x2
x coord opposite corner
y2
y coord opposite corner
filetype
image file type
terminal
terminal name
Xdec
x value to decimate
Ydec
y value to decimate
flipX
boolean, TRUE=flip on the x-axis
flipY
boolean, TRUE=flip on the y-axis
alpha
value for alpha channel
backgroundColor
value for background color
newWidth
new value for the width
newHeight
new value for the Height
degrees
angle of rotation in degrees
matrixFilenamesIn
matrix with the file names to tile
vectorWidths
vector with the widths of the files to tile
vectorHeights
vector with the heights of the files to tile
matrixXscale
matrix with values for scaling the images in the x-axis
matrixYscale
matrix with values for scaling the images in the y-axis
optional256
boolean, TRUE=256 color output

Value

See Also

GpimageRGBchange