EdwardJS024
Programmer
Hi guys,
Maybe someone can help me. Hopefully this post is clear. I know everyone is busy with their own work. Thanks in advance a thousand times.
MY OBJECTIVE:
I want to skew an image in a quadrilateral perspective. To get an example of what the image shape is supposed to be like after skewing, look at the [Isosceles Trapezoid] picture on this page (3rd one down):
MY PROBLEM:
I am only able to skew into a parrellogram shape.[8o|] I understand that Graphics.DrawImage() can skew an image by accepting an array of 3 destination Points (top-left, top-right, bottom-left), but somehow I need to specify the 4th Point cause right now it is interpolated from the three. Because I can only specify 3 points in the array, my image does not look like an Isosceles Trapezoid in perspective, it looks more like a parrellogram (see 4th one down on example page above).
SOLUTION?
I am pretty new to GDI/transformations/translations so a small example on how to do this in c#(preferred) or vb.net would be helpful. Thank you.
Thank you guys,
-EJS
Maybe someone can help me. Hopefully this post is clear. I know everyone is busy with their own work. Thanks in advance a thousand times.
MY OBJECTIVE:
I want to skew an image in a quadrilateral perspective. To get an example of what the image shape is supposed to be like after skewing, look at the [Isosceles Trapezoid] picture on this page (3rd one down):
MY PROBLEM:
I am only able to skew into a parrellogram shape.[8o|] I understand that Graphics.DrawImage() can skew an image by accepting an array of 3 destination Points (top-left, top-right, bottom-left), but somehow I need to specify the 4th Point cause right now it is interpolated from the three. Because I can only specify 3 points in the array, my image does not look like an Isosceles Trapezoid in perspective, it looks more like a parrellogram (see 4th one down on example page above).
SOLUTION?
I am pretty new to GDI/transformations/translations so a small example on how to do this in c#(preferred) or vb.net would be helpful. Thank you.
Thank you guys,
-EJS