This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IG > IGeneralizeOp Interface > IGeneralizeOp.Resample Method (ArcObjects .NET 10.4 SDK) |
Resamples the raster to a new cell size.
[Visual Basic .NET] Public Function Resample ( _ ByVal Raster As IGeoDataset, _ ByVal newCellSize As Double, _ ByVal resampleType As esriGeoAnalysisResampleEnum _ ) As IGeoDataset
[C#] public IGeoDataset Resample ( IGeoDataset Raster, double newCellSize, esriGeoAnalysisResampleEnum resampleType );
[C++]
HRESULT Resample(
IGeoDataset* Raster,
double newCellSize,
esriGeoAnalysisResampleEnum resampleType,
IGeoDataset** Resample
);
[C++]
Parameters Raster [in]
Raster is a parameter of type IGeoDataset newCellSize [in] newCellSize is a parameter of type double resampleType [in]
resampleType is a parameter of type esriGeoAnalysisResampleEnum Resample [out, retval]
Resample is a parameter of type IGeoDataset
raster |
an input Raster, RasterDataset, RasterBand, or RasterDescriptor whose cells define the zone values to be regrouped |
newCellSize |
ouput cellsize. The default is the current environment setting. |
ResampleType |
An esriGeoAnalysisResampleEnum specifing the resampling algorithm to be used when sampling a Raster See 'How it works' for a full description of the resampling methods. esriGeoAnalysisResampleBilinear bilinear interpolation esriGeoAnalysisResampleCubic cubic convolution esriGeoAnalysisResampleNearest nearest neighbor assignment |