コード例 #1
0
 /// <summary>
 /// Sets a background image for all keys
 /// </summary>
 /// <param name="deck"></param>
 /// <param name="bitmap"></param>
 public static void SetKeyBitmap(this IStreamDeck deck, StreamDeckKeyBitmap bitmap)
 {
     for (int i = 0; i < StreamDeckHID.numOfKeys; i++)
     {
         deck.SetKeyBitmap(i, bitmap.rawBitmapData);
     }
 }
コード例 #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 IStreamDeck deck, int keyId, StreamDeckKeyBitmap bitmap)
 {
     deck.SetKeyBitmap(keyId, bitmap.rawBitmapData);
 }