public enum RasterStretchType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum RasterStretchType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum RasterStretchType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum RasterStretchType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Count | Stretch by count. |
Custom | Custom stretch. |
DefaultFromSource | Default stretch from source. |
ESRI | Esri's stretch. |
HistogramEqualize | Stretch histogram equalization. |
HistogramSpecification | Stretch by histogram specification. |
MinimumMaximum | Stretch by minimum and maximum. |
None | No raster stretch. |
PercentMinimumMaximum | Stretch by percent minimum and maximum. |
StandardDeviations | Stretch by standard deviation. |
await QueuedTask.Run(() => { // Get the colorizer from the raster layer. CIMRasterColorizer rColorizer = rasterLayer.GetColorizer(); // Check if the colorizer is an RGB colorizer. if (rColorizer is CIMRasterRGBColorizer rasterRGBColorizer) { // Update RGB colorizer properties. rasterRGBColorizer.StretchType = RasterStretchType.ESRI; // Update the raster layer with the changed colorizer. rasterLayer.SetColorizer(rasterRGBColorizer); } });
await QueuedTask.Run(() => { // Get the image sub-layer from the mosaic layer. ImageMosaicSubLayer mosaicImageSubLayer = mosaicLayer.GetImageLayer(); // Get the colorizer from the image sub-layer. CIMRasterColorizer rColorizer = mosaicImageSubLayer.GetColorizer(); // Check if the colorizer is an RGB colorizer. if (rColorizer is CIMRasterRGBColorizer rasterRGBColorizer) { // Update RGB colorizer properties. rasterRGBColorizer.StretchType = RasterStretchType.ESRI; // Update the image sub-layer with the changed colorizer. mosaicImageSubLayer.SetColorizer(rasterRGBColorizer); } });
await QueuedTask.Run(() => { // Get the colorizer from the image service layer. CIMRasterColorizer rColorizer = isLayer.GetColorizer(); // Check if the colorizer is an RGB colorizer. if (rColorizer is CIMRasterRGBColorizer rasterRGBColorizer) { // Update RGB colorizer properties. rasterRGBColorizer.StretchType = RasterStretchType.ESRI; // Update the image service layer with the changed colorizer. isLayer.SetColorizer((CIMRasterColorizer)rasterRGBColorizer); } });
System.Object
System.ValueType
System.Enum
ArcGIS.Core.CIM.RasterStretchType
Target Platforms: Windows 11, Windows 10