Xamarin.Forms | ComponentOne
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.
    Public Shared Function GetImage( _ 
       ByVal view As Xamarin.Forms.View _ 
    ) As Task(Of Byte())
    Dim view As Xamarin.Forms.View
    Dim value As Task(Of Byte())
    value = ViewEx.GetImage(view)
    public static Task<byte[]> GetImage( 
       Xamarin.Forms.View view 



    Return Value

    A byte array with certain image format.
    See Also