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 |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 200.0 - 200.8 |
| .NET Windows | 200.0 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |