Skip to content

Latest commit

 

History

History

KGy SOFT .net

KGy SOFT Drawing SkiaSharp in WPF Example

This example demonstrates how to obtain an IReadWriteBitmapData instance for the SKBitmap class of any pixel format in a WPF application using the KGySoft.Drawing.SkiaSharp package and perform various operations on it.

💡 Tip: There are similar example applications for MAUI and Xamarin that also work with SkiaSharp, but they do it without using the dedicated SkiaSharp-specific package. They demonstrate how to manually obtain a bitmap data for a typical 3rd party bitmap implementation. But if you need to handle all possible color types and alpha types that an SKBitmap can represent, then this one is the recommended example.

KGy SOFT Drawing SkiaSharp/WPF Example App on Windows 11
The KGy SOFT Drawing SkiaSharp/WPF Example App running on Windows 11