开发者

Transform rectangular image into trapezoid

开发者 https://www.devze.com 2022-12-11 14:31 出处:网络
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.

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.


I just found this: http://www.vcskicks.com/image-distortion.html

It works great


You need a projective transformation which can be represented by a 3x3 matrix. I've explained how to obtain this transformation matrix in great detail in this SO solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消