mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Devices - Ported color correction code to RGB.NET
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user