In .NET how can I transform an image into a trapezoid. The Matrix class supports rotation, shear, etc, but I can't see a trapezoidal transformation.
I'm using the usual System.Drawing.* API, but I'm flexible to other .NET solutions.
In .NET how can I transform an image into a trapezoid. The Matrix class supports rotation, shear, etc, but I can't see a trapezoidal transformation.
I'm using the usual System.Drawing.* API, but I'm flexible to other .NET solutions.
我刚刚发现这个: http ://www.vcskicks.com/image-distortion.html
效果很好
您需要一个可以用 3x3 矩阵表示的投影变换。我已经在这个 SO 解决方案中详细解释了如何获得这个转换矩阵。