Gpmatrix2GimpPalette: Work with palette files

Description Usage Arguments Value Author(s) See Also

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

none

Author(s)

Jose' Gama

See Also

GpresampleDEM


Rgnuplot documentation built on May 1, 2019, 9:17 p.m.