1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Surface Editor - reverted color correction in the editor

the editor uses RGB.NET colors to display leds, so we need to use color correction data to restore it back to original
This commit is contained in:
Diogo Trindade 2020-12-12 00:15:07 +00:00
parent 7826674ec4
commit a23fab7d9f

View File

@ -38,9 +38,10 @@ namespace Artemis.UI.Shared
if (DisplayGeometry == null)
return;
byte r = Led.RgbLed.Color.GetR();
byte g = Led.RgbLed.Color.GetG();
byte b = Led.RgbLed.Color.GetB();
RGB.NET.Core.Color originalColor = Led.RgbLed.Color.DivideRGB(Led.Device.RedScale, Led.Device.GreenScale, Led.Device.BlueScale);
byte r = originalColor.GetR();
byte g = originalColor.GetG();
byte b = originalColor.GetB();
drawingContext.DrawRectangle(isDimmed
? new SolidColorBrush(Color.FromArgb(100, r, g, b))