Edit

WindowsExtensions.ToSKPixmap(WriteableBitmap, SKPixmap) Method

Definition

Copies the pixel data from a Windows WriteableBitmap into an existing SkiaSharp pixmap.

public static bool ToSKPixmap(this Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap bitmap, SkiaSharp.SKPixmap pixmap);

Parameters

bitmap
Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap

The Windows WriteableBitmap to convert.

pixmap
SKPixmap

The destination pixmap to copy the pixel data into.

Returns

true if the copy was successful; otherwise, false.

Applies to