C1.Xamarin.Forms.Core Assembly / C1.Xamarin.Forms.Core Namespace / ViewEx Class / GetImage Method


In This Topic
GetImage Method
In This Topic
Get the byte array of the control image. This byte array comes from a UIImagePNGRepresentation in iOS, TrueColorAlpha of PNG format in WP, Bitmap in Android.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.Xamarin.Forms.Core.ViewEx/d__28)> 
<ExtensionAttribute()> 
Public Shared Function GetImage( _ 
   ByVal view As Xamarin.Forms.View _ 
) As Task(Of Byte())
 
'Usage
 
Dim view As Xamarin.Forms.View
Dim value As Task(Of Byte())
 
value = ViewEx.GetImage(view)

Parameters

view

Return Value

A byte array with certain image format.
See Also