This sample sets a service defined raster function on an ImageryLayer by setting its raster function property. The image service is an IKONOS-2 scene of Toronto. It has four bands: blue, green, red, and near-infrared (NIR).
The TorontoFalseColor raster function template in the sample uses the NIR, Red, and Green bands to composite a false color image. It applies an extract band function and a percent clip stretch, which displays rendered pixel values differently from the original pixel values.
A popupTemplate is configured to display this information when you click any pixel on the layer.