Apply an RGB renderer to a raster layer to enhance feature visibility.
Use case
An RGB renderer is used to adjust the color bands of a multispectral image. Remote sensing images acquired from satellites often contain values representing the reflection of multiple spectrums of light. Changing the RGB renderer of such rasters can be used to differentiate and highlight particular features that reflect light differently, such as different vegetation types or turbidity in water.
How to use the sample
Tap the toolbar button to change the settings for the RGB renderer. You can change the stretch type and the parameters for each type.
How it works
Create an AGSRaster from a local raster file.
Create an AGSRasterLayer from the raster.
Create an AGSBasemap from the raster layer and set it to the map.
Create an AGSRGBRenderer, specifying the stretchParameters and other properties.
Set the raster layer's renderer to the AGSRGBRenderer.
Relevant API
AGSBasemap
AGSRaster
AGSRasterLayer
AGSRGBRenderer
AGSStretchParameters
About the data
The raster used in this sample shows an area in the south of the Shasta-Trinity National Forest, California.