The EngPlgBlt function causes GDI to perform a rotate bit-block transfer.
BOOL
EngPlgBlt(
IN SURFOBJ *psoTrg,
IN SURFOBJ *psoSrc,
IN SURFOBJ *psoMsk,
IN CLIPOBJ *pco,
IN XLATEOBJ *pxlo,
IN COLORADJUSTMENT *pca,
IN POINTL *pptlBrushOrg,
IN POINTFIX *pptfx,
IN RECTL *prcl,
IN POINTL *pptl,
IN ULONG iMode
);
This mask limits the area of the source that is copied. A mask has an implicit rop4 of 0xCCAA, which means the source should be copied wherever the mask is 1, but the destination should be left alone wherever the mask is zero.
If this parameter is NULL, there is an implicit rop4 of 0xCCCC, which means the source should be copied everywhere in the source rectangle.
The mask will always be large enough to contain the relevant source; tiling is unnecessary.
Whenever possible, GDI simplifies the clipping involved. Unlike the DrvBitBlt function, EngPlgBlt may be called with a single clipping rectangle. This prevents rounding errors in clipping the output.
A high quality rotate bit-block transfer is needed to interpolate colors.
EngPlgBlt is never called with A, B, and C collinear.
| Value | Meaning |
|---|---|
| BLACKONWHITE | On a shrinking bit-block transfer, pixels should be combined with an AND operation. On a stretching bit-block transfer pixels should be replicated. |
| COLORONCOLOR | On a shrinking bit-block transfer, enough pixels should be ignored so that pixels need not be combined. On a stretching bit-block transfer, pixels should be replicated. |
| HALFTONE | The driver may use groups of pixels in the output surface to best approximate the color or gray level of the input. |
| WHITEONBLACK | On a shrinking bit-block transfer, pixels should be combined with an OR operation. On a stretching block transfers, pixels should be replicated. |
The methods WHITEONBLACK, BLACKONWHITE, and COLORONCOLOR are simple and provide compatibility for old applications, but do not produce the best looking results for color surfaces.
The return value is TRUE if the function is successful. Otherwise, it is FALSE and an error code is reported.
Declared in winddi.h. Include winddi.h.
EngPlgBlt performs only certain types of rotations.
This function performs bit-block transfers from a rectangle defined by prcl to any parallelogram. The parallelogram is defined by pptfx, which points to an array of three points.
The source rectangle at prcl is considered to be a geometric rectangle whose corners are displaced by (-0.5,-0.5) from the given integer coordinates. This exactly matches the source rectangle for EngStretchBlt. The source rectangle is always well ordered.
The upper-left corner of the source rectangle is mapped to the first point, A. The upper-right corner of the source rectangle is mapped to the second point, B. The lower-left corner of the source rectangle is mapped to the third point, C. The lower-right corner of the source rectangle is mapped to the implicit point in the parallelogram defined by treating the three given points as vectors and computing:
D = B + C - A
Note that a stretch blit can be expressed exactly as a parallelogram blit, but the coordinates given for the destination will be divisible by five.
DrvAlphaBlend, DrvBitBlt, DrvPlgBlt, DrvStretchBlt, DrvStretchBltROP, DrvTransparentBlt, EngAlphaBlend, EngBitBlt, EngStretchBlt, EngStretchBltROP, EngTransparentBlt