WinUI | ComponentOne
C1.WinUI.Core Assembly / C1.WinUI.Core Namespace / WriteableBitmapEx Class / ToArray Method
The Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap.
In This Topic
    ToArray Method
    In This Topic
    Set Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap pixel data into an array of pixels.
    Syntax
    public static Task<byte[]> ToArray( 
       WriteableBitmap writeableBitmap
    )

    Parameters

    writeableBitmap
    The Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap.

    Return Value

    The array of pixels.
    See Also