public void InvalidateAllFrames() { CroppedFrames.Clear(); CroppedTransparentFrames.Clear(); CroppedFrames = new Dictionary <Tuple <string, int>, BitmapSource>(); CroppedTransparentFrames = new Dictionary <Tuple <string, int>, BitmapSource>(); }
public void InvalidateCroppedFrame(int texture, EditorAnimation.EditorFrame frame) { if (texture < 0 || texture >= LoadedAnimationFile.SpriteSheets.Count) { return; } var name = LoadedAnimationFile.SpriteSheets[texture]; CroppedFrames.Remove(new Tuple <string, int>(name, frame.GetHashCode())); CroppedTransparentFrames.Remove(new Tuple <string, int>(name, frame.GetHashCode())); }