This example demonstrates how to obtain an IReadWriteBitmapData instance for the SKBitmap class in a Xamarin application and perform various operations on it.
ℹ️ Note: This example references only the technology-agnostic
KGySoft.Drawing.Corepackage so it also demonstrates how to obtain a bitmap data for a 3rd party bitmap implementation without dedicated support. See the SkiaSharp specific solutions for MAUI or WPF for examples that support the wide range of possible pixel formats of theSKBitmaptype.
⚠️ Warning: Visual Studio 2026 does not support the Android and iOS projects of this solution anymore, and opens the Windows project only. You need Visual Studio 2022 or Visual Studio for Mac 2022 to be able to debug the Android and iOS projects. If you use Visual Studio Code, check out the MAUI example instead.
The KGy SOFT Drawing Xamarin Example App running on Windows 11
The KGy SOFT Drawing Xamarin Example App running on Android Phone

