最も簡単な方法でアニメーション GIF を表示する WinForms アプリがあります。.gif を直接読み込む PictureBox があります。
WinForms デザイナーによって生成されたコードは次のようになります。
//
// pictureBoxHomer
//
this.pictureBoxHomer.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.pictureBoxHomer.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBoxHomer.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxHomer.Image")));
this.pictureBoxHomer.Location = new System.Drawing.Point(3, 3);
this.pictureBoxHomer.Name = "pictureBoxHomer";
this.pictureBoxHomer.Size = new System.Drawing.Size(905, 321);
this.pictureBoxHomer.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBoxHomer.TabIndex = 0;
this.pictureBoxHomer.TabStop = false;
画像はもちろんこれです: http://media.tumblr.com/tumblr_m1di1xvwTe1qz97bf.gif
問題: このアニメーション gif はブラウザーでは驚くほど表示されますが、WinForms アプリでは実行速度が速すぎて、必要なほど快適ではありません。そう:
質問: WinForms アプリでアニメーション GIF を遅くする方法はありますか?