[]
        
(Showing Draft Content)

C1.WinUI.Core.ViewEx.GetImage

GetImage Method

GetImage(FrameworkElement)

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.

Declaration
public static Task<byte[]> GetImage(this FrameworkElement view)
Parameters
Type Name Description
FrameworkElement view
Returns
Type Description
Task<byte[]>

A byte array with certain image format.