Exemplo n.º 1
0
        public void UpdateFromSettings(SettingsObj settings)
        {
            _settings = settings;
            LyricsRenderer.UpdateFromSettings(settings, Width);

            Redraw();
        }
Exemplo n.º 2
0
        public void DrawLyrics1Line(string lyrics)
        {
            var bitmap = LyricsRenderer.Render1LineLyrics(lyrics);

            if (Width != bitmap.Width)
            {
                Width = bitmap.Width;
            }
            if (Height != bitmap.Height)
            {
                Height = bitmap.Height;
            }

            GdiplusHelper.SetBitmap(bitmap, 255, Handle, Left, Top, Width, Height);
            bitmap.Dispose();
        }