using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace WpfImage2 { /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void Reset_Click(object sender, RoutedEventArgs e) { Image1.LayoutTransform = new ScaleTransform(1, 1); } private void FlipHorizontal_Click(object sender, RoutedEventArgs e) { Image1.LayoutTransform = new ScaleTransform(-1, 1); } private void FlipVertical_Click(object sender, RoutedEventArgs e) { Image1.LayoutTransform = new ScaleTransform(1, -1); } private void Exit_Click(object sender, RoutedEventArgs e) { App.Current.Shutdown(); } } }