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<Microsoft.Maui.Controls.ImageSource> | A task that represents the asynchronous conversion operation.
The value of the task result contains an Microsoft.Maui.Controls.ImageSource object.
If |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |