java.lang.Object
com.esri.arcgisruntime.raster.RasterRenderer
com.esri.arcgisruntime.raster.BaseStretchRenderer
com.esri.arcgisruntime.raster.StretchRenderer
A stretch renderer enhances the visual contrast of raster data in a
RasterLayer
.
A stretch renderer uses continuous raster cell values across a gradual ramp of colors to visualize raster data. It works well when you have a large range of values to display, such as in imagery, aerial photographs, or elevation models.
Stretching improves the appearance of the raster data by spreading its cell values along a histogram whose minimum and maximum values are defined by the raster's bit depth. For example, an 8-bit raster dataset will be stretched along a histogram from 0 to 255.
- Since:
- 100.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionStretchRenderer
(StretchParameters stretchParameters, List<Double> gammas, boolean estimateStatistics, ColorRamp colorRamp) Creates an instance of StretchRenderer. -
Method Summary
Methods inherited from class com.esri.arcgisruntime.raster.BaseStretchRenderer
getGammas, getStretchParameters, isEstimateStatistics
-
Constructor Details
-
StretchRenderer
public StretchRenderer(StretchParameters stretchParameters, List<Double> gammas, boolean estimateStatistics, ColorRamp colorRamp) Creates an instance of StretchRenderer.- Parameters:
stretchParameters
- stretch parametersgammas
- gamma adjustmentsestimateStatistics
- true to enable estimating statisticscolorRamp
- color ramp- Throws:
IllegalArgumentException
- if stretchParameters is null- Since:
- 100.0.0
-
-
Method Details
-
getColorRamp
Gets the color ramp.- Returns:
- the color ramp
- Since:
- 100.0.0
-