Apply a hillshade renderer to a raster.
An environmental agency may track coastal erosion by comparing images of an area taken over a a longer period of time with hillshade renderers applied.
Choose and adjust the settings to update the hillshade renderer on the raster layer. The sample allows you to change the Altitude, Azimuth, and Slope Type.
- Create a
Raster
from a grayscale raster file. - Create a
RasterLayer
from the raster. - Create a
Basemap
from the raster layer and set it to the map. - Create a
HillshadeRenderer
, specifying the slope type and other properties,new HillshadeRenderer(Altitude, Azimuth, ZFactor, SlopeType, PixelSizeFactor, PixelSizePower, OutputBitDepth)
. - Set the hillshade renderer to be used on the raster layer with
rasterLayer.Renderer
.
- Basemap
- HillshadeRenderer
- Raster
- RasterLayer
This sample uses a digital elevation map from ArcGIS Online.
altitude, angle, azimuth, raster, slope, visualization