Learn R Programming

Rgnuplot (version 1.0.3)

Gpmatrix2GimpPalette: Work with palette files

Description

Gpmatrix2GimpPalette saves a matrix into a Gimp palette file (gpl) Gpmatrix2palette save a palette from matrix data with optional palette indeces and the option to modify the palette for solid colors GpcreateIndexFromMatrixAndPalette from a matrix with RGB colors (decimal 24bit) from an image file and its palette as a vector, create a matrix with indices GpcreatePaletteFromMatrix from a matrix with RGB colors (decimal 24bit) from an image file create a palette of 256 colors (decimal 24bit), as a vector GpgimpPalette2matrix reads a Gimp palette into a matrix, optionally the index can be returned too GppalettePlot plots a palette from an indexed PNG file GpshowPaletteColornames get gnuplot's RGB color names as a dataframe - 'ColorName','ColorHex','R','G','B'

Usage

Gpmatrix2GimpPalette(paletteMatrix, gplFileName, GimpColumns=16)
Gpmatrix2palette(paletteData, paletteFileName,paletteIndeces=0,SolidColor=FALSE)
GpcreateIndexFromMatrixAndPalette(matrixRGB, paletteRGB)
GpcreatePaletteFromMatrix(matrixRGB, sortType='')
GpgimpPalette2matrix(paletteGimp,returnIndex=FALSE)
GppalettePlot(filepal, sortType='', TheGimp=FALSE)
GpshowPaletteColornames()

Arguments

paletteMatrix
matrix with palette values
gplFileName
palette file from The GIMP
GimpColumns
number of columns on gpl file header
paletteData
matrix with the palette data
paletteFileName
output palette file
paletteIndeces
number of indices
SolidColor
boolean, TRUE=solid colors
matrixRGB
matrix with RGB true colors
paletteRGB
palette file
paletteGimp
palette file from The GIMP
returnIndex
boolean, TRUE=include the index value
filepal
palette file
sortType
not implemented yet
TheGimp
boolean, TRUE=GIMP file

Value

See Also

GpresampleDEM