Lucee Function Reference
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
Category
image
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 (colors of the spectrum) - linear (interpolates linearly between two colors) - grayscale (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. |