4

OK, this is something that is best explained with an image...

uneven stretch draw of an image

I am looking for a function similar to StretchBlt but where i can copy an image to a canvas defining the four corners of the destination, i.e. a Trapezoid/Quadrilateral stretch draw of an image onto a canvas.

I can think of a number of slow ways to do this, but I want to know if there is something of a similar speed to StretchBlt (e.g. no more than ten times slower).

Thanks

Gerry Coll
  • 5,867
  • 1
  • 27
  • 36
Zax
  • 471
  • 1
  • 4
  • 14
  • There is a very good description how to do this here [iphone-image-stretching-skew](http://stackoverflow.com/questions/2351586/iphone-image-stretching-skew). – LU RD Sep 28 '11 at 05:25
  • How about [PlgBlt](http://msdn.microsoft.com/en-us/library/dd162804(VS.85).aspx)? – Premature Optimization Sep 28 '11 at 21:41
  • @LU RD: Yes, that is what i want to do, but i am hoping for a specific routine or windows API... – Zax Sep 28 '11 at 23:01
  • @Downvoterstepintothelight: Yes, PlgBlt would be fantastic, but unfortunately it only blts a parallelogram rather than a Trapezoid :-( – Zax Sep 28 '11 at 23:19

1 Answers1

7

There are very fast methods for this in the Graphics32 library.

Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73