Geo::GDAL 1.6.0

Geo::GDAL::ColorTable Class Reference

Inheritance diagram for Geo::GDAL::ColorTable:
Inheritance graph
[legend]

List of all members.

Public Class Methods

Geo::GDAL::ColorTable new (scalar GDALPaletteInterp=scalar Geo::GDAL::Const::GPI_RGB)
Geo::GDAL::ColorTable create (scalar GDALPaletteInterp= 'RGB')

Public Object Methods

Geo::GDAL::ColorTable Clone ()
scalar GetPaletteInterpretation ()
scalar GetCount ()
list ColorEntries (list color_entries)
list ColorEntry (scalar i, list color)
list GetColorEntry (scalar i)
list GetColorEntryAsRGB (scalar i)
 SetColorEntry (scalar index, list ColorEntry)
 CreateColorRamp (scalar start_index, listref start_color, scalar end_index, listref end_color)

Member Function Documentation

Geo::GDAL::ColorTable Geo::GDAL::ColorTable::Clone ( )
Returns:
a new Geo::GDAL::ColorTable object
list Geo::GDAL::ColorTable::ColorEntries ( list  color_entries)

Get or set the color entries.

Parameters:
color_entries[optional]
Returns:
a table of color entries (a list of lists) in a non void context
list Geo::GDAL::ColorTable::ColorEntry ( scalar  i,
list  color 
)

Get or set a color entry.

Parameters:
i
color[optional]
Returns:
a color entry
Geo::GDAL::ColorTable Geo::GDAL::ColorTable::create ( scalar  GDALPaletteInterp = 'RGB')
Returns:
a new Geo::GDAL::ColorTable object
Geo::GDAL::ColorTable::CreateColorRamp ( scalar  start_index,
listref  start_color,
scalar  end_index,
listref  end_color 
)
Parameters:
start_index
start_color
end_index
end_color
list Geo::GDAL::ColorTable::GetColorEntry ( scalar  i)
Parameters:
i
Returns:
array ColorEntry = ($c1, $c2, $c3, $c4)
list Geo::GDAL::ColorTable::GetColorEntryAsRGB ( scalar  i)
Parameters:
i
Returns:
array ColorEntry = ($r, $g, $b, $alpha)
scalar Geo::GDAL::ColorTable::GetCount ( )
Returns:
scalar (count of color entries as int)
scalar Geo::GDAL::ColorTable::GetPaletteInterpretation ( )
Returns:
paletter interpretation (string)
Geo::GDAL::ColorTable Geo::GDAL::ColorTable::new ( scalar  GDALPaletteInterp = scalar Geo::GDAL::Const::GPI_RGB)
Deprecated:
use Geo::GDAL::ColorTable::create, which uses string constants
Returns:
a new Geo::GDAL::ColorTable object
Geo::GDAL::ColorTable::SetColorEntry ( scalar  index,
list  ColorEntry 
)
Parameters:
index
ColorEntrya list or a reference to an array

The documentation for this class was generated from the following file: