Compartilhar via


DrvRealizeColor (Windows CE 5.0)

Send Feedback

This function maps an RGB color onto the closest available color that the device supports.

ULONG DrvRealizeColor(  USHORT iDstType,  ULONG cEntries,  ULONG* pPalette,  ULONG rgbColor);

Parameters

  • iDstType
    [in] Flag value. Set to one of PAL_INDEXED, PAL_BITFIELDS, PAL_RGB, or PAL_BGR.
  • cEntries
    [in] Number of entries in the palette.
  • pPalette
    [in] Pointer to the device palette.
  • rgbColor
    [in] Color to realize, specified in PAL_RGB format.

Return Values

Realized color value.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winddi.h.
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.

See Also

Display Drivers

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.