Skip To Content ArcGIS for Developers Sign In Dashboard

Stretch renderer


This sample demonstrates how to use stretch renderer on a raster layer. Tap on the Edit renderer button in the toolbar to change the settings for the stretch renderer. The sample allows you to change the stretch type and the parameters for each type. You can tap on the Render button to update the raster.

How it works

The sample uses AGSStretchRenderer class to generate stretch renderers. The settings provided by the user are put in the initializer initWithStretchParameters:gammas:estimateStatistics:colorRamp: to get a new renderer and the renderer is then set on the raster.

In this topic
  1. Description