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
Task<ImageSource>

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

See Also
ToImageSource(RuntimeImage)

Applies to

Platforms and versions
TargetVersions
.NET200.0 - 300.0
.NET Windows200.0 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
In this article
Provide feedback
Back to top Copyright © 2025 Esri.