Show / Hide Table of Contents

Class RuntimeImage

An image data container used with several image input and outputs in the API.

Inheritance
Object
RuntimeImage
Implements
ILoadable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class RuntimeImage : ILoadable

Constructors

Name Description
RuntimeImage(Byte[])

Initializes a new instance of the RuntimeImage class from an encoded image buffer

RuntimeImage(Int32, Int32, Byte[])

Initializes a new instance of the RuntimeImage class from a raw 32-bit image buffer.

RuntimeImage(Uri)

Initializes a new instance of the RuntimeImage class from a Uri

Properties

Name Description
Height

Gets the height of the image in physical pixels

LoadError

Gets the Exception associated with the last load error.

LoadStatus

Gets the load status.

Source

Gets the URI endpoint for this image, or null if it's a local in-memory image.

Width

Gets the width of the image in physical pixels

Methods

Name Description
CancelLoad()

Cancel loading metadata for the object.

FromStreamAsync(Stream)

Creates a RuntimeImage from a data stream

GetEncodedBufferAsync()

Returns the image data in the same format that it was created.

GetEncodedBufferAsync(CancellationToken)

Returns the image data in the same format that it was created.

GetRawBufferAsync()

Gets the raw 32-bit image buffer in RGBA order.

LoadAsync()

Load the metadata for the object asynchronously.

RetryLoadAsync()

Loads or retries loading metadata for the object asynchronously.

Events

Name Description
Loaded

Event that is raised when the object is done loading.

LoadStatusChanged

Event that is raised when the LoadStatus property changes.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

Relevant samples

Mobile map (search and route): Display maps and use locators to enable search and routing offline using a Mobile Map Package.
Read shapefile metadata: Read a shapefile and display its metadata.
Take screenshot: Take a screenshot of the map.
In This Article
Back to top Copyright © 2022 Esri.