<p>Drawing a parallelgram is nicely supported with Graphics.DrawImage:</p>

<pre><code>Bitmap destImage = new Bitmap(srcImage.Width, srcImage.Height);
using (Graphics gr = new Graphics.FromImage(destImage))
{
    Point[] destPts = new Point[] { new PointF(x1, y1), 
        new PointF(x2, y2), new PointF(x4, y4)};
    gr.DrawImage(srcImage, destPts);
</code></pre>

<p>How, do you do 4 points (obviously the following is not supported, but this is what is wanted):</p>

<pre><code>Bitmap destImage = new Bitmap(srcImage.Width, srcImage.Height);
using (Graphics gr = new Graphics.FromImage(destImage))
{
    Point[] destPts = new Point[] { new PointF(x1, y1), new PointF(x2, y2),
        new PointF(x3, y3), new PointF(x4, y4)};
    gr.DrawImage(srcImage, destPts);
}
</code></pre>

[{'answer_id': 38403, 'author': 'Adam Tegen', 'author_id': 4066, 'author_profile': 'https://Stackoverflow.com/users/4066', 'pm_score': 1, 'selected': False, 'text': '<p>Normally you would do this with a 3x3 Matrix, but the Matrix class only lets you specify 6 values instead of 9.  You might be able to do this in Direct X.</p>\n'}, {'answer_id': 320969, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': -1, 'selected': True, 'text': '<p>Closest I can find is <a href="http://vckicks.110mb.com/image-distortion.html" rel="nofollow noreferrer">this information</a>, which is extremely laggy.</p>\n'}, {'answer_id': 11918947, 'author': 'TekuConcept', 'author_id': 1416320, 'author_profile': 'https://Stackoverflow.com/users/1416320', 'pm_score': 0, 'selected': False, 'text': '<p>When thinking of how 3D tools would handle it... try drawing a triangle of one half and then the other triangle for the other half. So if you have points A, B, C, &amp; D; you would draw (with a clipping plane) A, B, C and then B, C, D, or something of the sort.</p>\n'}, {'answer_id': 29897774, 'author': 'antonio', 'author_id': 1024754, 'author_profile': 'https://Stackoverflow.com/users/1024754', 'pm_score': 0, 'selected': False, 'text': '<p>I found the following article in CodeProject:\n<a href="http://www.codeproject.com/Articles/36145/Free-Image-Transformation" rel="nofollow noreferrer">Free Image Transformation By YLS</a>\n<img src="https://i.stack.imgur.com/JeYap.jpg" alt="enter image description here"></p>\n\n<p>needs some works</p>\n\n<p>maybe you can use this :)</p>\n'}]
['https://Stackoverflow.com/questions/38308', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3798/']