Property ResamplingType
ResamplingType
Gets or sets the resampling policy or method used when rendering raster data in this layer.
Declaration
public RasterResamplingType ResamplingType { get; set; }
Property Value
| Type | Description |
|---|---|
| RasterResamplingType | The resampling policy or method used when rendering raster data in this layer. |
Remarks
Controls how raster cell values are calculated when the layer is rendered at a different resolution than the raster's native cell size, or when the raster is transformed (for example, scaled or reprojected). Different resampling methods trade off visual smoothness and preservation of original values.
This property defaults to Automatic, which indicates that the resampling method should be determined automatically. Set this property to a specific method (for example, NearestNeighbor) to explicitly override resampling for the layer.
When set to Automatic, the resampling method used for rendering is automatically determined based on the raster properties. By default, NearestNeighbor is applied to preserve data values. For rasters that are known to contain continuous data, BilinearInterpolation is applied to produce smoother visual transitions. The resampling method is determined asynchronously when the raster data source is loaded and rendered.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |