ux: set RenderOptions.BitmapInterpolationMode = BitmapInterpolationMode.HighQuality for avatars

This commit is contained in:
leo 2024-04-07 15:00:18 +08:00
parent 416b839df5
commit a8d06ce042

View file

@ -7,6 +7,7 @@ using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using Avalonia.Media; using Avalonia.Media;
using Avalonia.Media.Imaging;
namespace SourceGit.Views namespace SourceGit.Views
{ {
@ -48,6 +49,8 @@ namespace SourceGit.Views
ContextMenu = new ContextMenu(); ContextMenu = new ContextMenu();
ContextMenu.Items.Add(refetch); ContextMenu.Items.Add(refetch);
RenderOptions.SetBitmapInterpolationMode(this, BitmapInterpolationMode.HighQuality);
} }
public override void Render(DrawingContext context) public override void Render(DrawingContext context)