Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function IMAGEFILTERCOLORMAP

These are passed to the function ImageFilters (see ImageFilter documentation) which convert gray values to colors.

Example

imagefiltercolormap(string type,[string lineColor1,[string lineColor2]]):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
type string  Yes type of the color map, possible values are:
- spectrum: A colormap with the colors of the spectrum
- linear: A colormap which interpolates linearly between two colors
- grayscale: A grayscale colormap. Black is 0, white is 1  
lineColor1 string  No used only for type "linear", the color corresponding to value 0 in the colormap.  
lineColor2 string  No used only for type "linear", the color corresponding to value 1 in the colormap.