WindowsExtensions.ToSKPixmap(WriteableBitmap, SKPixmap) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.