Esempio n. 1
0
        private void ZoomActualToCenterButton_OnClick(object sender, RoutedEventArgs e)
        {
            IndicatorViewer.ZoomActual();
            IndicatorViewer.X = -IndicatorViewer.BitmapSource.PixelWidth / 2.0 + IndicatorViewer.ActualWidth / 2.0;
            IndicatorViewer.Y = -IndicatorViewer.BitmapSource.PixelHeight / 2.0 + IndicatorViewer.ActualHeight / 2.0;
            IndicatorViewer.ZoomOut();
//            IndicatorViewer.ZoomOut();
//            IndicatorViewer.Zoom(new Point(IndicatorViewer.BitmapSource.PixelWidth/2.0,IndicatorViewer.BitmapSource.PixelHeight/2.0 ),
//                0.5);
        }
Esempio n. 2
0
 private void ZoomOutButton_OnClick(object sender, RoutedEventArgs e)
 {
     IndicatorViewer.ZoomOut();
 }