public FormLogin() { InitializeComponent(); using (Font fnt = new Font("Arial", 25, FontStyle.Bold)) { this.bmpText = (Bitmap)FancyText.ImageFromText("个人财务管理系统", fnt, Color.Green, Color.Goldenrod); } this.pictureBox_Title.Image = this.bmpText; }
private void timer1_Tick(object sender, EventArgs e) { Random rand = new Random(); Color clr1 = Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255)); Color clr2 = Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255)); using (Font fnt = new Font("Arial", 25, FontStyle.Bold)) { this.bmpText = (Bitmap)FancyText.ImageFromText("个人财务管理系统", fnt, clr1, clr2); } this.pictureBox_Title.Image = this.bmpText; }