Beispiel #1
0
 /// <summary>
 /// Sets a background image for all keys
 /// </summary>
 /// <param name="deck"></param>
 /// <param name="bitmap"></param>
 public static void SetKeyBitmap(this Client deck, KeyBitmap bitmap)
 {
     for (int i = 0; i < deck.KeyCount; i++)
     {
         deck.SetKeyBitmap(i, bitmap.rawBitmapData);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Sets a background image for a given key
 /// </summary>
 /// <param name="deck"></param>
 /// <param name="keyId"></param>
 /// <param name="bitmap"></param>
 public static void SetKeyBitmap(this Client deck, int keyId, KeyBitmap bitmap)
 {
     deck.SetKeyBitmap(keyId, bitmap.rawBitmapData);
 }