This document is archived and information here might be outdated.  Recommended version.


IRasterStretch Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IRasterStretch Interface

Provides access to members which control contrast stretching. Note: the IRasterStretch interface has been superseded byIRasterStretch2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

The IRasterStretch interface is used to set stretch type for RasterStretchColorRampRenderer or RasterRGBRenderer. It controls how the values in a band are binned for display.

Members

Description
Read/write property Background Indicates if a background value is being used.
Read/write property BackgroundColor Background display color.
Read/write property BackgroundValues Indicates whether an array of background values is being used.
Read/write property Invert Indicates if the stretch is inverted.
Read/write property StandardDeviationsParam Standard deviation parameter for the stretch renderer.
Read/write property StretchType Current stretch type.

CoClasses that implement IRasterStretch

CoClasses and Classes Description
RasterRGBRenderer A true-color RGB renderer.
RasterStretchColorRampRenderer A renderer with a color ramp for rasters with continuous values.

.NET Related Topics

How to create a raster stretch renderer