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


IGeneralizeOp.Shrink Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IG > IGeneralizeOp Interface > IGeneralizeOp.Shrink Method
ArcGIS Developer Help

IGeneralizeOp.Shrink Method

Shrinks the selected zones by a specified number of cells.

[Visual Basic .NET]
Public Function Shrink ( _
    ByVal Raster As IGeoDataset, _
    ByVal numberCells As Integer, _
    ByRef zoneList As Object _
) As IGeoDataset
[C#]
public IGeoDataset Shrink (
    IGeoDataset Raster,
    int numberCells,
    ref object zoneList
);
[C++]
HRESULT Shrink(
  IGeoDataset* Raster,
  long numberCells,
  Variant* zoneList
);
[C++]
Parameters
Raster [in]

Raster is a parameter of type IGeoDataset* numberCells [in]
numberCells is a parameter of type long zoneList [in]
zoneList is a parameter of type VARIANT*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

raster

An input Raster, RasterDataset, RasterBand, or RasterDescriptor

numberCells

The number of cells to shrink each selected zone

zoneList

A listing of values (array of type long) from the table of the input raster indicating the zones to select.  The default field is Value.

 

See Also

IGeneralizeOp Interface