Click or drag to resize

RuntimeImageExtensionsToImageSourceAsync Method

Converts a RuntimeImage to a Xamarin.Forms image source.

Namespace:  Esri.ArcGISRuntime.Xamarin.Forms
Assembly:  Esri.ArcGISRuntime.Xamarin.Forms (in Esri.ArcGISRuntime.Xamarin.Forms.dll) Version: 100.7.0.0
Syntax
C#
public static Task<ImageSource> ToImageSourceAsync(
	this RuntimeImage image
)

Parameters

image
Type: Esri.ArcGISRuntime.UIRuntimeImage
Runtime Image to convert

Return Value

Type: TaskXamarin.Forms.ImageSource
A Xamarin.Forms image source

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RuntimeImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Additional Examples
Hyperlink to ExampleDescription
SymbolsFromMobileStyleOpen a mobile style (.stylx) and read its contents. Combine several symbols from the style into a single multilayer point symbol, then use it to display graphics in the map view.