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