From 4a8e738b0dc18b81ebb0ecd56e90777f21f4c6da Mon Sep 17 00:00:00 2001 From: Chev <11602755+chev2@users.noreply.github.com> Date: Sat, 16 Jan 2021 21:16:21 -0800 Subject: [PATCH] Remove unused TSCB things --- botw-toolset/Control/TabTSCB.xaml.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/botw-toolset/Control/TabTSCB.xaml.cs b/botw-toolset/Control/TabTSCB.xaml.cs index 08b306a..bf06382 100644 --- a/botw-toolset/Control/TabTSCB.xaml.cs +++ b/botw-toolset/Control/TabTSCB.xaml.cs @@ -32,10 +32,6 @@ namespace BOTWToolset.Control InitializeComponent(); RenderOptions.SetBitmapScalingMode(PixelView, BitmapScalingMode.NearestNeighbor); // Nearest-neighbor sampling - //RenderOptions.SetEdgeMode(i, EdgeMode.Unspecified); - - //Placeholder image - writeableBitmap = new WriteableBitmap(4, 4, 16, 16, PixelFormats.BlackWhite, null); PixelView.Source = writeableBitmap; PixelView.Stretch = Stretch.Uniform; @@ -48,21 +44,6 @@ namespace BOTWToolset.Control GC.Collect(); // Garbage collect to free memory } - public void PixelViewBorder_MouseWheel(object sender, MouseWheelEventArgs e) - { - Matrix m = PixelView.RenderTransform.Value; - - if (e.Delta > 0) - { - m.ScaleAt(1.5f, 1.5f, e.GetPosition(PixelViewBorder).X, e.GetPosition(PixelViewBorder).Y); - } - else - { - m.ScaleAt(2 / 3, 2 / 3, e.GetPosition(PixelViewBorder).X, e.GetPosition(PixelViewBorder).Y); - } - - PixelView.RenderTransform = new MatrixTransform(m); - } private void PixelView_UpdateView(object sender, RoutedEventArgs e) {