public void UpdateFromSettings(SettingsObj settings) { _settings = settings; LyricsRenderer.UpdateFromSettings(settings, Width); Redraw(); }
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(); }