Monthly Archives: November 2020

Use the mouse wheel to scale images while cropping them to a desired aspect ratio in C#

This example adds mouse wheel support to the example Crop scaled images to a desired aspect ratio in C#. Some social media platforms work best with a 4:3 aspect ratio, so I use that example almost every day to crop … Continue reading

Posted in drawing, graphics, image processing | Tagged , , , , , , , , , | 2 Comments

Allow scrolling while making a hexagonal montage in C#

The example Make a hexagonal montage of pictures in C# shows how to make a hexagonal montage similar to the one shown above. I sometimes want to make a montage that is much bigger, and that example doesn’t let you … Continue reading

Posted in drawing, graphics, image processing, tools | Tagged , , , , , , , , , , , , , , | Leave a comment

Use XAML data binding to display an animated rectangle’s location

This example uses storyboard animation to move a rectangle and uses XAML data binding to display the rectangle’s location as it moves. It’s actually fairly simple, at least a far as WPF goes, once you figure out how to do … Continue reading

Posted in animation, wpf, XAML | Tagged , , , , , , , , , | Leave a comment