Devices - Ported color correction code to RGB.NET

This commit is contained in:
Robert committed 2021-02-25 19:58:40 +01:00
1 parent 2e859bc84c
commit 1ea2e2bee7
6 files changed
+55 -30

No files matched your search

@@ -27,7 +27,7 @@ namespace Artemis.UI.Shared
if (Led.Layout?.Image != null && File.Exists(Led.Layout.Image.LocalPath))
LedImage = new BitmapImage(Led.Layout.Image);
CreateLedGeometry();
}
@@ -44,10 +44,9 @@ namespace Artemis.UI.Shared
_renderColorBrush ??= new SolidColorBrush();
RGB.NET.Core.Color originalColor = Led.GetOriginalColor();
byte r = originalColor.GetR();
byte g = originalColor.GetG();
byte b = originalColor.GetB();
byte r = Led.RgbLed.Color.GetR();
byte g = Led.RgbLed.Color.GetG();
byte b = Led.RgbLed.Color.GetB();
_renderColor.A = isDimmed ? 100 : 255;
_renderColor.R = r;