From bc082368c1b21e244bbcd8172503d856c6a8b541 Mon Sep 17 00:00:00 2001 From: epopova Date: Tue, 5 Aug 2025 14:43:04 +0300 Subject: [PATCH] Make the GetPixels method public --- source/SkiaSharp.Views/SkiaSharp.Views.WinUI/UWPExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SkiaSharp.Views/SkiaSharp.Views.WinUI/UWPExtensions.cs b/source/SkiaSharp.Views/SkiaSharp.Views.WinUI/UWPExtensions.cs index a0768ac015..2e38a54d0e 100644 --- a/source/SkiaSharp.Views/SkiaSharp.Views.WinUI/UWPExtensions.cs +++ b/source/SkiaSharp.Views/SkiaSharp.Views.WinUI/UWPExtensions.cs @@ -173,7 +173,7 @@ public static bool ToSKPixmap(this WriteableBitmap bitmap, SKPixmap pixmap) } } - internal static IntPtr GetPixels(this WriteableBitmap bitmap) => + public static IntPtr GetPixels(this WriteableBitmap bitmap) => bitmap.PixelBuffer.GetByteBuffer(); internal static IntPtr GetByteBuffer(this IBuffer buffer) =>