1

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.

4

2 回答 2

2

我刚刚发现这个: http ://www.vcskicks.com/image-distortion.html

效果很好

于 2009-11-13T16:03:52.047 回答
1

您需要一个可以用 3x3 矩阵表示的投影变换。我已经在这个 SO 解决方案中详细解释了如何获得这个转换矩阵。

于 2009-11-13T16:45:28.993 回答