Sometimes, when you're warping an image, you may decide that you don't like how it looks. You can easily clear the warp effect you've applied to the image with a general button control and some code.
Markup |
Copy Code
|
---|---|
<Button Content="Restart" Click="Restart" Grid.Column="2" Width="140" HorizontalAlignment="Left" /> |
The code attached to the button Click Event should look like the following:
C# |
Copy Code
|
---|---|
private void Restart(object sender, RoutedEventArgs e) { bitmap.Copy(originalBitmap, false); screen.Copy(originalBitmap, false); } |