Class RuntimeImage
An image data container used with several image input and outputs in the API. Supports opening PNG and JPEG images.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class RuntimeImage : ILoadableConstructors
| Name | Description | 
|---|---|
| RuntimeImage(Byte[]) | Initializes a new instance of the RuntimeImage class from image data encoded in PNG or JPEG format. | 
| RuntimeImage(Uri) | Initializes a new instance of the RuntimeImage class from a URI of a PNG or JPEG file. | 
Properties
| Name | Description | 
|---|---|
| Height | Gets the height of the image in physical pixels | 
| LoadError | Gets the System.Exception associated with the last load error. | 
| LoadStatus | Gets the load status. | 
| Source | Gets the URI endpoint for this image, or  | 
| 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 with a PNG or JPEG format. | 
| GetEncodedBufferAsync() | Returns the image data in the same format that it was created, either PNG or JPEG. | 
| GetEncodedBufferAsync(CancellationToken) | Returns the image data in the same format that it was created, either PNG or JPEG. | 
| GetRawBufferAsync() | Gets the decoded 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
| 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 |