mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Split device views/VMs for surface and profile editors
Added support for devices without images to the surface editor
This commit is contained in:
1 parent
a752c75239
commit
d9c2e7b2dc
13 files changed
+334
-109
No files matched your search
@@ -43,10 +43,14 @@ namespace Artemis.Core.RGB.NET
|
||||
public Color GetPixel(int x, int y)
|
||||
{
|
||||
var index = x + y * Width;
|
||||
var col = Bits[index];
|
||||
var result = Color.FromArgb(col);
|
||||
if (index >= 0 && index - 1 <= Bits.Length)
|
||||
{
|
||||
var col = Bits[index];
|
||||
var result = Color.FromArgb(col);
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
return Color.Black;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user