变换矩形图像变成梯形梯形、矩形、图像

2023-09-06 08:06:40 作者:面具戴久了就摘不下来了

在.NET我怎么可以把图像变成梯形。 Matrix类支持旋转,剪切等,但我看不到一个梯形的转变。

我使用的是常用的System.Drawing中。* API,但我灵活地与其他.NET解决方案。

解决方案

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

它的伟大工程

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