DrvCopyBits (Windows CE 5.0)
This function translates between device-managed raster surfaces and graphics device interface (GDI) standard format bitmaps.
BOOL DrvCopyBits( SURFOBJ* psoDst, SURFOBJ* psoSrc, CLIPOBJ* pco, XLATEOBJ* pxlo, RECTL* prclDst, POINTL* pptlSrc );
- [out] Pointer to the destination surface for the copy operation.
- [in] Pointer to the source surface for the copy operation.
- [in] Pointer to a CLIPOBJ structure that defines a clipping region on the destination surface.
- [in] Pointer to a XLATEOBJ structure that defines the translation of color indices between the source and target surfaces.
- [in] Pointer to a RECTL structure that defines the area to be modified. This structure uses the coordinate system of the destination surface. The bottom and right edges of this rectangle are not part of the blit; that is, the rectangle is bottom-right exclusive.
This function never executes with an empty destination rectangle. The two points that define the rectangle are always well ordered.
- [in] Pointer to a POINTL structure that defines the upper-left corner of the source rectangle.
TRUE indicates success. FALSE indicates failure.
This function is required for a device driver that has device-managed bitmaps or raster surfaces. The implementation in the driver must translate driver surfaces to and from any standard format bitmap.
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.
This function should ideally be able to deal with run-length enclosing and device-dependent bitmaps. The device-dependent format is optional; only a few specialized drivers need to support it. You can send these bitmaps to this function because of the SetDIBitsToDevice and SetBitmapBits, and GDI functions.
Kernel-mode GDI calls this function from its simulations.
OS Versions: Windows CE 1.0 and later.
Link Library: Ddi_ati_lib.lib, Ddi_flat_lib.lib, Ddi_gx_lib.lib, Ddi_mq200_lib.lib, Ddi_nop_lib.lib, Ddi_rflat_lib.lib, Ddi_rgx_lib.lib, or Ddi_tvia5_lib.lib.
Send Feedback on this topic to the authors