C#快速動(dòng)畫(huà)庫(kù)介紹

Animator for WinForms
作者:Pavel Torgashov (烏克蘭人)
他的庫(kù)都有一個(gè)特點(diǎn):賊快!

效果展示:







貼代碼湊字?jǐn)?shù)
引用?using AnimatorNS;
? ? ? ? ?private void DoAnimation()
????????{?//wait while all animations will be completed
????????????animator1.WaitAllAnimations();
????????????animator1.DefaultAnimation = Animation.ScaleAndRotate; //效果
????????}
? ? ? ? ? ?
????????void Button1Click(object sender, EventArgs e)
????????{
????????????animator1.Hide(pictureBox1); //隱藏
????????????DoAnimation();
????????}
????????void Button2Click(object sender, EventArgs e)
????????{
????????????animator1.Show(pictureBox1); //顯示
????????????DoAnimation();
????????}

以上
標(biāo)簽: