optimize<Avatar>: render avatar using BitmapScalingMode.HighQuality

This commit is contained in:
leo 2021-05-25 17:52:33 +08:00
parent ebd4c32690
commit 0419cf96fc

View file

@ -78,6 +78,10 @@ namespace SourceGit.Views.Controls {
private int colorIdx = 0; private int colorIdx = 0;
private FormattedText label = null; private FormattedText label = null;
public Avatar() {
SetValue(RenderOptions.BitmapScalingModeProperty, BitmapScalingMode.HighQuality);
}
/// <summary> /// <summary>
/// 渲染实现 /// 渲染实现
/// </summary> /// </summary>