Non-Affine Transforms in 2D with WPF

I have been looking for a good example of how to do a perspective crop in WPF for some time now. I recently found the term Affine transformation and found this blog post by Charles Petzold

https://www.charlespetzold.com/blog/2007/08/250638.html

It looked useful so I reached out to Charles and asked if I could modernize the code and share it publicly on GitHub to which he agreed!

Here is the repository pull requests welcome!

https://github.com/TheJoeFin/nonAffine

Hopefully you find this useful! Here is an example of a before and after:

Joe

Leave a comment