From e59142140cf5576af64d48512819cb7a51501741 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:46:37 +0100 Subject: [PATCH] Ambient tweaks --- app/USB/Aura.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index 5532b67e..a11e0434 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -630,8 +630,8 @@ namespace GHelper.USB public static void ApplyAmbient(bool init = false) { var bound = Screen.GetBounds(Point.Empty); - //bound.Y += bound.Height / 3; - //bound.Height -= (int)Math.Round(bound.Height * (0.33f + 0.022f)); // cut 1/3 of the top screen + windows panel + bound.Y += bound.Height / 3; + bound.Height -= (int)Math.Round(bound.Height * (0.33f + 0.022f)); // cut 1/3 of the top screen + windows panel Bitmap screen_low = AmbientData.CamptureScreen(bound, 512, 288); //quality decreases greatly if it is less 512 ; Bitmap screeb_pxl = AmbientData.ResizeImage(screen_low, 4, 2); // 4x2 zone. top for keyboard and bot for lightbar; @@ -657,7 +657,6 @@ namespace GHelper.USB AmbientData.Colors[0].RGB = ColorUtils.HSV.UpSaturation(ColorUtils.GetDominantColor(screeb_pxl), (float)0.3); } - //screen_low.Save("big.jpg", ImageFormat.Jpeg); //screeb_pxl.Save("small.jpg", ImageFormat.Jpeg); @@ -756,7 +755,7 @@ namespace GHelper.USB { graphics.CompositingMode = CompositingMode.SourceCopy; graphics.CompositingQuality = CompositingQuality.HighQuality; - graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; + graphics.InterpolationMode = InterpolationMode.Bicubic; graphics.SmoothingMode = SmoothingMode.None; graphics.PixelOffsetMode = PixelOffsetMode.None;