ArcGIS Runtime SDK for iOS
100.15
|
A stretch raster renderer.
Instances of this class represent a stretch renderer that can help visualize raster data using AGSRasterLayer
.
A stretch renderer displays continuous raster cell values across a gradual ramp of colors. Use it to draw a single band of continuous data. The stretch renderer 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 pixel 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.
Instance Methods | |
(instancetype) | - init |
(instancetype) | - initWithStretchParameters:gammas:estimateStatistics:colorRamp: |
Class Methods | |
(instancetype) | + baseStretchRenderer |
(instancetype) | + rasterRenderer |
(instancetype) | + stretchRendererWithStretchParameters:gammas:estimateStatistics:colorRamp: |
Properties | |
BOOL | estimateStatistics |
NSArray< NSNumber * > * | gammas |
AGSStretchParameters * | stretchParameters |
+ (instancetype) baseStretchRenderer |
- (instancetype) init |
- (instancetype) initWithStretchParameters: | (AGSStretchParameters *) | stretchParameters | |
gammas: | (NSArray< NSNumber * > *) | gammas | |
estimateStatistics: | (BOOL) | estimateStatistics | |
colorRamp: | (nullable AGSColorRamp *) | colorRamp | |
Creates a stretch renderer.
stretchParameters | The stretch parameters to use. |
gammas | An array of values in the range 0 - 2 to apply gamma correction for each band in the raster dataset. Gamma refers to the degree of contrast between the midlevel gray values of a raster dataset. Gamma does not affect the black or white values in a raster dataset, only the middle values. By applying a gamma correction, you can control the overall brightness of a raster dataset. Additionally, gamma changes not only the brightness but also the ratios of red to green to blue. Values lower than 1 decrease the contrast in the darker areas and increase the contrast in the lighter areas. This darkens the image without saturating the dark or light areas of the image. This helps bring out details in lighter features, such as building tops. Conversely, gamma values greater than 1 increase the contrast in darker areas, such as shadows from buildings. Gamma values greater than one can also help bring out details in lower elevation areas when working with elevation data. |
estimateStatistics | indicating whether statistics should be estimated for raster datasets that don't contain statistical information about their pixel values. |
colorRamp | The color ramp to use. |
+ (instancetype) rasterRenderer |
+ (instancetype) stretchRendererWithStretchParameters: | (AGSStretchParameters *) | stretchParameters | |
gammas: | (NSArray< NSNumber * > *) | gammas | |
estimateStatistics: | (BOOL) | estimateStatistics | |
colorRamp: | (nullable AGSColorRamp *) | colorRamp | |
Creates a stretch renderer.
stretchParameters | The stretch parameters to use. |
gammas | An array of values in the range 0 - 2 to apply gamma correction for each band in the raster dataset. Gamma refers to the degree of contrast between the midlevel gray values of a raster dataset. Gamma does not affect the black or white values in a raster dataset, only the middle values. By applying a gamma correction, you can control the overall brightness of a raster dataset. Additionally, gamma changes not only the brightness but also the ratios of red to green to blue. Values lower than 1 decrease the contrast in the darker areas and increase the contrast in the lighter areas. This darkens the image without saturating the dark or light areas of the image. This helps bring out details in lighter features, such as building tops. Conversely, gamma values greater than 1 increase the contrast in darker areas, such as shadows from buildings. Gamma values greater than one can also help bring out details in lower elevation areas when working with elevation data. |
estimateStatistics | indicating whether statistics should be estimated for raster datasets that don't contain statistical information about their pixel values. |
colorRamp | The color ramp to use. |
|
readnonatomicassigninherited |
Indicates whether statistics should be estimated for the raster dataset. This is typically needed for datasets that do not have statistics.
|
readnonatomiccopyinherited |
An array of values in the range 0-2 to apply gamma correction for each band in the raster dataset. Gamma refers to the degree of contrast between the midlevel gray values of a raster dataset. Gamma does not affect the black or white values in a raster dataset, only the middle values. By applying a gamma correction, you can control the overall brightness of a raster dataset. Additionally, gamma changes not only the brightness but also the ratios of red to green to blue. Values lower than 1 decrease the contrast in the darker areas and increase the contrast in the lighter areas. This darkens the image without saturating the dark or light areas of the image. This helps bring out details in lighter features, such as building tops. Conversely, gamma values greater than 1 increase the contrast in darker areas, such as shadows from buildings. Gamma values greater than one can also help bring out details in lower elevation areas when working with elevation data.
|
readnonatomicstronginherited |
The stretch parameters used for the renderer.