Non-Affine image transformations in .NET

前端 未结 3 1740
后悔当初
后悔当初 2021-01-12 10:23

Are there any classes, methods in the .NET library, or any algorithms in general, to perform non-affine transformations? (i.e. transformations that involve more than just ro

3条回答
  •  佛祖请我去吃肉
    2021-01-12 11:18

    You can do this in wpf using a the Viewport3d control and a non-affine transform matrix. Rendering this to a bitmap again may be interesting.... Which I "fixed" by including an invisible control with the same image as on my textured plane... (Also, I've had to work around the max texture size issues by splitting up the plane and cropping images...)

    http://www.charlespetzold.com/blog/2007/08/060605.html

    In my case I wanted the reverse of this (transform so arbitrary points on the warped become the corners of my rectangular window), which is the Inverse of the matrix to do the opposite.

提交回复
热议问题