コード例 #1
0
 private void Clear_Click(object sender, EventArgs e)
 {
     DialogResult res = MessageBox.Show("Do you want to delete the current animation?", "Bothering you", MessageBoxButtons.YesNo);
     if (res == DialogResult.Yes)
     {
         annie = new AnimationSequence();
         UpdateAnimation();
     }
 }
コード例 #2
0
        public AnimationSequence DeltaCompress()
        {
            if (Animation.Count <= 1)
            {
                return this;
            }
            AnimationSequence ret = new AnimationSequence();
            ret.AddFrame(Animation[0]);

            for (int i = 1; i < Animation.Count; i++)
            {
                ret.AddFrame(Animation[i - 1].delta(Animation[i]));
            }

            return ret;
        }
コード例 #3
0
 public AnimationTool()
 {
     annie = new AnimationSequence();
     InitializeComponent();
 }