This example demonstrates how to obtain an IReadWriteBitmapData
instance for the SKBitmap
class of any pixel format in a MAUI 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.
The KGy SOFT Drawing SkiaSharp/MAUI Example App running on Windows 11
The KGy SOFT Drawing SkiaSharp/MAUI Example App running on MacOS
The KGy SOFT Drawing SkiaSharp/MAUI Example App running on Android Phone
The KGy SOFT Drawing SkiaSharp/MAUI Example App running on iPhone