Show / Hide Table of Contents

Method ToImageSourceAsync

ToImageSourceAsync(RuntimeImage)

Converts a RuntimeImage to a .NET MAUI image source.

Declaration
public static Task<ImageSource?> ToImageSourceAsync(this RuntimeImage image)
Parameters
Type Name Description
RuntimeImage image

Runtime Image to convert

Returns
Type Description
System.Threading.Tasks.Task<System.Nullable<ImageSource>>

A task that represents the asynchronous conversion operation. The value of the task result contains an object. If image was null, the result is also null.

Applies to

Platforms and versions
TargetVersions
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.