public void Consume(byte[] bytes) { var bitmap = WifLoader.DecodeFrame(bytes); if (bitmap != null) { next.Consume(bitmap); } }
private void LoadWif(string path) { var animationVM = new AnimationViewModel(); WifLoader.LoadInSeparateThread(path, animationVM.CreateReceiver()); var viewer = new AnimationWindow(animationVM); viewer.Show(); }