Forked from the amazingly popular original asceticcropper Library, this Compat version aims to ease your migration from Xamarin.Forms to .NET MAUI with a compatible implementation to get you up and running without rewriting the parts of your app that relied on the original library.
Thanks to the Original Authors: jocontacter.
- Install the AsceticCropper.Maui package
Install-Package AsceticCropper.Maui
- Add AsceticCropper.Maui declaration to your MauiAppBuilder
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAsceticCropper()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
return builder.Build();
}
}
- Customizable masks: dash properties, border color, border width, CornerRadius;
- Predefined masks:
RectangleMaskPainter
with CornerRadius(with apply corners),CircleMaskPainter
with different side ratio's: oval/circle,GridMaskPainter
; - Inherit from
MaskPainter
and make your own;