ComponentOne Xamarin.Android
GetImage Method


C1.Android.Core Assembly > C1.Android.Core Namespace > ViewEx Class : GetImage Method
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.Android.Core.ViewEx/d__55)> 
<ExtensionAttribute()> 
Public Shared Function GetImage( _ 
   ByVal view As Android.Views.View _ 
) As Task(Of Byte())
'Usage
 
Dim view As Android.Views.View
Dim value As Task(Of Byte())
 
value = ViewEx.GetImage(view)
[AsyncStateMachine(C1.Android.Core.ViewEx/d__55)] 
[Extension()] 
public static Task<byte[]> GetImage( 
   Android.Views.View view 
)

Parameters

view

Return Value

A byte array with certain image format.
See Also

Reference

ViewEx Class
ViewEx Members