Example #1
0
        public void ShowLogo()
        {
            var kb = new KeyImageBuilder();

            kb.Fill(0);

            StreamDeck.ShowLogo();
            for (int i = 0; i < KeyCount; ++i)
            {
                UpdateKeyImage(i, kb.Bitmap);
            }
        }
Example #2
0
        private async void Button_Click_Redwyre(object sender, RoutedEventArgs e)
        {
            using (KeyImageBuilder ib = new KeyImageBuilder())
            {
                ib.Fill(0xFFFFFF);
                ib.DrawText("R", 0xFF0000, true, true);

                await Model.SetKeyImage(4, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("E", 0xFF0000, true, true);

                await Model.SetKeyImage(3, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("D", 0xFF0000, true, true);

                await Model.SetKeyImage(2, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("W", 0xFF0000, true, true);

                await Model.SetKeyImage(1, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("Y", 0xFF0000, true, true);

                await Model.SetKeyImage(0, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("R", 0xFF0000, true, true);

                await Model.SetKeyImage(9, ib.Bitmap);

                ib.Fill(0xFFFFFF);
                ib.DrawText("E", 0xFF0000, true, true);

                await Model.SetKeyImage(8, ib.Bitmap);
            }
        }