Class Raster
Represents raster data that can be rendered using a RasterLayer.
Implements
Namespace: Esri.ArcGISRuntime.Rasters
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Raster : ILoadable
Remarks
A raster consists of a matrix of cells (or pixels) organized into rows and columns (or a grid) where each cell contains a value representing information, such as temperature. Rasters are digital aerial photographs, imagery from satellites, digital pictures, or even scanned maps.
A Raster can be created from a raster file on the device or from a RasterFunction.
Supported Raster formats include:
- ASRP/USRP
- CRF
- DTED0, 1, 2
- GeoTIFF
- HFA
- HRE
- IMG
- JPEG
- JPEG 2000
- MrSID, generations 2, 3, and 4
- NITF
- PNG
- RPF (CIB)
- RPF (CADRG)
- SRTM1, 2
- Mobile mosaic datasets
Learn more about rasters from the ArcGIS Pro documentation.
Constructors
| Name | Description |
|---|---|
| Raster(RasterFunction) | Initializes a new instance of the Raster class. |
| Raster(String) | Initializes a new instance of the Raster class. |
Properties
| Name | Description |
|---|---|
| Function | Gets the raster function for this instance. |
| LoadError | Gets the load status of raster. |
| LoadStatus | Gets the load status of raster. |
| Path | Gets the raster path for this instance. |
| RasterType | Gets the type of the raster (data source) |
Methods
| Name | Description |
|---|---|
| CancelLoad() | Cancels an ongoing load. |
| LoadAsync() | Initiates loading of raster. |
| RetryLoadAsync() | Retry loading raster. |
Events
| Name | Description |
|---|---|
| Loaded | Occurs when raster is loaded. |
| LoadStatusChanged | Occurs when raster's LoadStatus is changed. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |