Show / Hide Table of Contents

Class Raster

Represents raster data that can be rendered using a RasterLayer.

Inheritance
object
Raster
GeoPackageRaster
ImageServiceRaster
MosaicDatasetRaster
Implements
ILoadable
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
  • PDF
  • 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.

RasterInfo

Gets the metadata that describes the raster.

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
LoadStatusChanged

Occurs when raster's LoadStatus is changed.

Loaded

Occurs when raster is loaded.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Raster layer (file): Create and use a raster layer made from a local raster file.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.