Partager via


AfxGetGrayBitmap

Copie une version grise d'une bitmap.

void AFXAPI AfxGetGrayBitmap(
   const CBitmap &rSrc,
   CBitmap *pDest,
   COLORREF crBackground
);

Paramètres

  • rSrc
    Le bitmap source.

  • pDest
    La bitmap de destination.

  • crBackground
    La nouvelle couleur d'arrière-plan (en général grise, telles que COLOR_MENU).

Notes

Une bitmap copiée avec AfxGetGrayBitmap aura l'apparence d'un contrôle de désactivé.

Interface originale et grisée

Exemple

CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));

Configuration requise

Header: afxwin.h

Voir aussi

Référence

AfxDrawGrayBitmap

AfxGetDitheredBitmap

Concepts

Macro MFC et Globals

Autres ressources

Gris et fonctions de bitmap raster