The EngCopyBits function translates between device-managed raster surfaces and GDI standard-format bitmaps.
BOOL
EngCopyBits(
OUT SURFOBJ *psoDest,
IN SURFOBJ *psoSrc,
IN CLIPOBJ *pco,
IN XLATEOBJ *pxlo,
IN RECTL *prclDest,
IN POINTL *pptlSrc
);
The return value is TRUE if the function is successful. If it is unsuccessful, it logs an error and returns FALSE.
Declared in winddi.h. Include winddi.h.
Standard-format bitmaps are single-plane, packed-pixel format. Each scan line is aligned on a 4-byte boundary. These bitmaps have 1, 4, 8, 16, 24, 32, or 64 bits per pixel.
GDI calls this function from its simulations.
EngCopyBits should not be called with an empty destination rectangle, and the two points of the destination rectangle must be well-ordered; that is, the first point should represent the upper-left vertex of the rectangle, and the second should represent the lower-right vertex.