private void Image_Tapped(object sender, TappedRoutedEventArgs e) { if (_isRunning) { ImageRotate.Stop(); } else { ImageRotate.Begin(); } _isRunning = !_isRunning; }
public void TestMatrixRotate() { ImageRotate rotate = new ImageRotate(); int[][] matrix = new int[][] { new int[3] { 1, 2, 3 }, new int[3] { 4, 5, 6 }, new int[3] { 7, 8, 9 }, }; rotate.Rotate(matrix); }