Learn R Programming

Rgnuplot (version 1.0.3)

GpRGB2image: Work with RGB data

Description

GpRGB2image converts an RGB file to another image file GpRGB1to3channels converts a vector or matrix of RGB 1-channel decimal values (24 bit) to 3-channel decimal values (3x8 bit) GpRGB2DAT converts an RGB file to a matrix data file GpRGBsample plots a square filled with an RGB color

Usage

GpRGB2image(RGBfile, imagefile, width, height, filetype='PNG', gpterminal=NULL) GpRGB1to3channels(RGB1channel=NULL, fileRGB1channel=NULL, fileRGB3channel=NULL) GpRGB2DAT(RGBfile, DATfile,width,height) GpRGBsample(xRGB='#FFFFFF', optionalTitle='')

Arguments

RGBfile
raw RGB file name
imagefile
image file name
width
image width
height
image height
filetype
image type
gpterminal
terminal name
RGB1channel
vector or matrix of RGB 1-channel decimal values (24 bit)
fileRGB1channel
file with RGB 1-channel decimal values (24 bit)
fileRGB3channel
file with RGB 3-channel decimal values (3x8 bit)
DATfile
data file name
xRGB
RGB color in hexadecimal
optionalTitle
title for plot

Value

See Also

Gpimage2image