WindowsExtensions.ToSKImage(WriteableBitmap) 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.
Converts a Windows WriteableBitmap into a SkiaSharp image.
public static SkiaSharp.SKImage ToSKImage(this Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap bitmap);
Parameters
- bitmap
- Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap
The Windows WriteableBitmap to convert.
Returns
Returns a new SKImage containing a copy of the image data.