From 5f6a7938b7e3c5cf6c5f4317c0d12cd0f49815a6 Mon Sep 17 00:00:00 2001 From: thisisthekap Date: Wed, 6 Nov 2024 08:18:44 +0100 Subject: [PATCH 1/2] Added docs for https://github.com/dotnet/maui/pull/25686 --- docs/user-interface/images/images.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/user-interface/images/images.md b/docs/user-interface/images/images.md index 333895010..93a837008 100644 --- a/docs/user-interface/images/images.md +++ b/docs/user-interface/images/images.md @@ -81,3 +81,14 @@ A background color for an image can also be specified: Color values can be specified in hexadecimal, or as a .NET MAUI color. For example, `Color="Red"` is valid. + +## Control image quality by specifying FilterQuality + +The underlying `SKFilterQuality` used to compress the images is set to `SKFilterQuality.High` by default. + +With https://github.com/dotnet/maui/pull/25686 a new configuration property `FilterQuality` was introduced that can be set to any member of `SKFilterQuality`: + +```xml + + +``` From 71f13b6fa22b3c255a717a5427e92ed4180cd0be Mon Sep 17 00:00:00 2001 From: thisisthekap Date: Wed, 6 Nov 2024 08:21:55 +0100 Subject: [PATCH 2/2] added link to skfilterquality in skiasharp repository --- docs/user-interface/images/images.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-interface/images/images.md b/docs/user-interface/images/images.md index 93a837008..0b9f6917d 100644 --- a/docs/user-interface/images/images.md +++ b/docs/user-interface/images/images.md @@ -84,7 +84,7 @@ Color values can be specified in hexadecimal, or as a .NET MAUI color. For examp ## Control image quality by specifying FilterQuality -The underlying `SKFilterQuality` used to compress the images is set to `SKFilterQuality.High` by default. +The underlying [SKFilterQuality](https://github.com/mono/SkiaSharp/blob/f9bf4512767c9de22b6683e573b145ce5f0ce0a9/binding/SkiaSharp/SKPaint.cs#L17) used to compress the images is set to `SKFilterQuality.High` by default. With https://github.com/dotnet/maui/pull/25686 a new configuration property `FilterQuality` was introduced that can be set to any member of `SKFilterQuality`: