Image Transformation


#1

Hi there,

I am looking for some advice concerning the transformation of Images. (think Photoshop >> ctrl+t). One solution already came to my mind (and works too) using triangles and Barycentric coordinates. And now im wondering if there maybe is a smarter and faster way of approaching this particular problem.

For those who dont know what i’m talking about, here is a picture.

Thanks in advance…


#2

Try to use GDI++


#3

Try to use GDI+ or DirectX.


#4

To what end? Its no problem to draw the image. But rather how to calculate it.
so long…


#5

Well, you could always use certain UV mapping techniques(1) but… do you actually need to know the fastest algorithm? The reason everyone’s suggesting GDI+ is because it gives you access to the 2D graphics hardware that has built in capabilities to do all this stuff for you, so unless there’s a specific reason you need to know a good algorithm it’s best to use GDI+ or some other 2D API like DirectDraw.

(1)There is a weird UV mapping technique I’ve read of that involves rotating a polygon from world space to orthographic flat space, the application of the UV coords would work here. Not the fastest of techniques for 3D though.


#6

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.