How to distort image using 4 points in screen space in WPF?

Is there a way to distort the image using 4 points, where 4 points will correspond to the corners of the image?

Something like that:

enter image description here

Ignore midpoints and center point. Here, although the image looks like warped in 3d, this is not in my case. This is similar to changing the 2nd rectangle of the polygon on the screen, where the image filling the rectangle corresponds to the modified shape / polygon, since both have 4 vertices and 4 edges.

Any ideas on how to do this?

+3
source share
1 answer

You can use the Charles Petzold technique described here:

The second example is a demonstration of what you are describing.

+4
source

All Articles