Blend a hillshade with a raster by specifying the elevation data. The resulting raster looks similar to the original raster, but with some terrain shading, giving it a textured look.
BlendRenderer
can be used to apply a color ramp to a hillshade to emphasize areas of high or low elevation. A BlendRenderer
can also be used to add a hillshade effect to aerial or satellite imagery, thereby making changes in elevation more visible.
Choose and adjust the altitude, azimuth, slope type, and color ramp type settings to update the image.
- Create a
Raster
object from a raster file. - Create a
RasterLayer
object from the raster. - Create a
Basemap
object from the raster layer and set it to the map. - Create another
Raster
object for elevation from a grayscale raster file. - Create a
BlendRenderer
object, specifying the elevation raster, color ramp, and other properties.- If you specify a non-null color ramp, use the elevation raster as the base raster in addition to the elevation raster parameter. That way, the color ramp is used instead of the satellite imagery.
- Set the blend renderer to the raster layer.
- BlendRenderer
- ColorRamp
- Raster
- RasterLayer
This sample uses the Shasta elevation image collection.
color ramp, elevation, hillshade, image, raster, visualization