Skip to main content

Function: parseColormap()

parseColormap(cmap, nodata?): ImageData

Defined in: colormap.ts:9

Parse the GeoTIFF ColorMap tag into an ImageData.

Parameters

cmap

Uint16Array

The colormap array from the GeoTIFF ColorMap tag.

nodata?

number

Optional index of the nodata value in the colormap.

Returns

ImageData

The parsed colormap as an ImageData object.