Skip to content

Commit

Permalink
The quality of the image on the main screen has been degraded for the…
Browse files Browse the repository at this point in the history
… sake of performance.
  • Loading branch information
TTLC198 committed Sep 9, 2023
1 parent 52c76bb commit 22b4929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions HSMonitor/Views/MainWindowView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<Grid
Grid.Row="2">
<Image
x:Name="DashboardImage"
Width="280"
Height="320"
Margin="0,2,0,2"
Expand Down
4 changes: 4 additions & 0 deletions HSMonitor/Views/MainWindowView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;

#pragma warning disable CA1416
namespace HSMonitor.Views
{
Expand All @@ -11,6 +13,8 @@ public partial class MainWindowView : Window
public MainWindowView()
{
InitializeComponent();

RenderOptions.SetBitmapScalingMode(DashboardImage, BitmapScalingMode.LowQuality);
}

protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
Expand Down

0 comments on commit 22b4929

Please sign in to comment.