This is a reference to a color map object. This object contains a color map that can be used when displaying a single raster band to a view (see ENVIView::CreateLayer for more information).

Example


To make an ENVIColorMap, use an index, a name, or a Bytarr(3,256). The IDL XLOADCT utility lists IDL color tables by index and name; type XLOADCT at the IDL command line to see the list.

See More Examples below for three examples.

Return Value


This function returns a reference to an ENVIColorMap object.

Properties


BLUE (Get, Set)

Specify a Bytarr(256) to supply the blue values of the color table.

GREEN (Get, Set)

Specify a Bytarr(256) to supply the green values of the color table.

PALETTE (Get, Set)

Specify a Bytarr(256) to supply the RGB values of the color table.

RED (Get, Set)

Specify a Bytarr(256) to supply the red values of the color table.

VALUE (Set)

Specify an integer index into IDL color tables, or a string name of an IDL color table.

More Examples


To make an ENVIColorMap, you use an index, a name, or a Bytarr(3,256).

Specify an index to apply the Rainbow color table:

ENVI> colorMap = EnviColorMap(13)

Specify the Rainbow color table by name:

ENVI> colorMap = EnviColorMap(‘Rainbow’)

Make a custom color table:

ENVI> EnviColorMap(Bindgen(256) # Replicate(1b,3))

Version History


ENVI 6.2

Introduced

See Also


ENVIRaster, ENVIRasterLayer, ENVIRasterSeries, ENVIRasterSeriesLayer, ENVIView::CreateLayer