ImageFilterColorMap()
These are passed to the function ImageFilters (see ImageFilter() documentation) which convert gray values to colors.
Requires Extension: Image extension
ImageFilterColorMap( type=string, lineColor1=string, lineColor2=string );
Returns: any
Examples
img = imageRead("https://dev.lucee.org/uploads/default/original/2X/6/63711fa0d32b7ebd71a71286b77aa555c8d034fa.jpeg");
filter = "life";
map = ImageFilterColorMap(type="spectrum");
params = {
colormap: map,
iterations: 20,
newColor: "990000",
};
ImageFilter(image = img, filtername = filter, parameters = params);
imageWriteToBrowser(img);
See also
- Image manipulation
- image.filterColorMap()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)