.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,487 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A community member has associated this post with a similar question:
What is the replacement of Android.Support.V7.Graphics.palette in Maui world
Only moderators can edit this content.
I am using the following lines of code to extract the theme color of the bitmap image in Xamarin, and I am not able to find how to replace this with the working code in Maui.
palette = Android.Support.V7.Graphics.Palette.From(bitmap).Generate();
var swatch = palette.VibrantSwatch;
swatch ??= palette.DominantSwatch;
var color = swatch.Rgb;