I have an existing GDI object that contains an image.
While I've worked extensively with using BitBlt and StretchBlt for
rectangular regions, I would like to cut out an arbitrary polygon
shape from that image (a triangle for example), and then map those
coordinates to a set of coodinates in another GDI object. The
resultant polygon may be stretched (bigger/smaller), but will not be
rotated in any way.
Basically I would like to copy the region defined by the polygon
(x1,y1....xn,yn) and blit that polygon to another GDI object at
coordinates (a1,b1....an,bn) where x1,y1 is mapped to a1,b1, and so on
and so forth.
Evan
My guess is that PlgBlt() does what you want, but I am not sure.
http://en.wikipedia.org/wiki/Parallelogram
After some checking, MaskBlt is preferable. There is no StretchMaskBlt, so
you have to use StretchBlt first, then MaskBlt.