The EngStretchBltROP function performs a stretching bit-block transfer using a ROP.
BOOL
EngStretchBltROP(
IN SURFOBJ *psoDest,
IN SURFOBJ *psoSrc,
IN SURFOBJ *psoMask,
IN CLIPOBJ *pco,
IN XLATEOBJ *pxlo,
IN COLORADJUSTMENT *pca,
IN POINTL *pptlHTOrg,
IN RECTL *prclDest,
IN RECTL *prclSrc,
IN POINTL *pptlMask,
IN ULONG iMode,
IN BRUSHOBJ *pbo,
IN DWORD rop4
);
Whenever possible, GDI simplifies the clipping involved. However, unlike EngBitBlt, EngStretchBltROP can be called with a single clipping rectangle. This prevents rounding errors in clipping the output.
This XLATEOBJ structure can also be queried to find the RGB color for any source index. A high quality stretching bit-block transfer will need to interpolate colors in some cases.
The rectangle is lower-right exclusive; that is, its lower and right edges are not a part of the copy.
EngStretchBltROP must never be called with an empty destination rectangle.
The rectangle is lower-right exclusive; that is, its lower and right edges are not a part of the copy.
This rectangle maps to the rectangle to which prclDest points.
EngStretchBltROP must never be called with an empty source rectangle.
| Value | Meaning |
|---|---|
| BLACKONWHITE | On a shrinking bit-block transfer, GDI combines pixels with a Boolean AND operation. On a stretching bit-block transfer, pixels are replicated. |
| COLORONCOLOR | On a shrinking bit-block transfer, GDI ignores enough pixels so that pixels need not be combined. On a stretching bit-block transfer, pixels are replicated. |
| HALFTONE | GDI uses 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 a Boolean OR operation. On a stretching bit-block transfer, pixels should be replicated. |
This is a quaternary raster operation, which is a natural extension of the usual ternary Rop3 operation. A Rop4 has 16 relevant bits, which are similar to the 8 defining bits of a Rop3. (The other redundant bits of the Rop3 are ignored.) The simplest way to implement a Rop4 is to consider its 2 bytes separately. The lower byte specifies a Rop3 that should be computed wherever the mask to which psoMask points is 1. The high byte specifies a Rop3 that can be computed and applied wherever the mask is zero.
EngStretchBltROP returns TRUE upon success. Otherwise, it reports an error and returns FALSE.
Declared in winddi.h. Include winddi.h.
The driver should call EngStretchBltROP if it has hooked DrvStretchBltROP but cannot support all operations.
The mapping is defined by prclSrc and prclDest. The points specified in prclDest and prclSrc lie on integer coordinates that correspond to pixel centers. A rectangle defined by two such points is considered to be a geometric rectangle with two vertices whose coordinates are the given points, but with 0.5 subtracted from each coordinate. (POINTL structures are shorthand notation for specifying these fractional coordinate vertices.)
DrvAlphaBlend, DrvBitBlt, DrvPlgBlt, DrvStretchBlt, DrvStretchBltROP, DrvTransparentBlt, EngAlphaBlend, EngBitBlt, EngPlgBlt, EngStretchBlt, EngTransparentBlt