Пример #1
0
 public void SetKeys(IEnumerable <Point> points, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     foreach (Point singlePoint in points)
     {
         rawEffect.Color[singlePoint.Y, singlePoint.X].Add(color);
     }
 }
Пример #2
0
        public void SetKeys(int index1, int index2, RazerChroma.Net.NativeWin32.ColorRef color)
        {
            int minIndex = (index1 > index2) ? index2 : index1;
            int maxIndex = (index1 > index2) ? index1 : index2;

            for (int i = index1; i <= index2; i++)
            {
                rawEffect.Color[i].Add(color);
            }
        }
Пример #3
0
        public void SetKeys(int row1, int col1, int row2, int col2, RazerChroma.Net.NativeWin32.ColorRef color)
        {
            int minCol = (col1 > col2) ? col2 : col1;
            int minRow = (row1 > row2) ? row2 : row1;
            int MaxCol = (col1 > col2) ? col1 : col2;
            int MaxRow = (row1 > row2) ? row1 : row2;

            for (int currentRow = minRow; currentRow <= MaxRow; currentRow++)
            {
                for (int currentCol = minCol; currentCol <= MaxCol; currentCol++)
                {
                    rawEffect.Color[currentRow, currentCol].Add(color);
                }
            }
        }
Пример #4
0
 public void Clear(RazerChroma.Net.NativeWin32.ColorRef color)
 {
     SetKeys(0, (int)RazerChroma.Net.MousePad.Definitions.MaxLeds - 1, color);
 }
Пример #5
0
 public void SetKey(int index, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     rawEffect.Color[index].Add(color);
 }
Пример #6
0
 public void SetKeys(IEnumerable <RazerChroma.Net.Keyboard.Definitions.RzKey> keys, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     foreach (RazerChroma.Net.Keyboard.Definitions.RzKey singleKey in keys)
     {
         rawEffect.Color[((int)singleKey & 0xff00) >> 8, (int)singleKey & 0xff].Add(color);
     }
 }
Пример #7
0
 public void SetKey(Point point, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     rawEffect.Color[point.Y, point.X].Add(color);
 }
Пример #8
0
 public void SetKey(int row, int col, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     rawEffect.Color[row, col].Add(color);
 }
Пример #9
0
 public void SetKey(RazerChroma.Net.Keyboard.Definitions.RzKey key, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     SetKey(((int)key & 0xff00) >> 8, (int)key & 0xff, color);
 }
Пример #10
0
 public void Clear(RazerChroma.Net.NativeWin32.ColorRef color)
 {
     SetKeys(0, 0, (int)RazerChroma.Net.Keyboard.Definitions.MaxRow - 1, (int)RazerChroma.Net.Keyboard.Definitions.MaxCol - 1, color);
 }
Пример #11
0
 public void SetKeys(Point p1, Point p2, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     SetKeys(p1.Y, p1.X, p2.Y, p2.X, color);
 }
Пример #12
0
 public void SetKey(RazerChroma.Net.Mouse.Definitions.RzLed2 key, RazerChroma.Net.NativeWin32.ColorRef color)
 {
     SetKey(((int)key & 0xff00) >> 8, (int)key & 0xff, color);
 }
Пример #13
0
 public void Set(RazerChroma.Net.NativeWin32.ColorRef color)
 {
     rawEffect.Color.Add(color);
 }