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(); } }
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; }
public AnimationTool() { annie = new AnimationSequence(); InitializeComponent(); }