Partager via


AfxDrawGrayBitmap

Dessine une version grise d'une bitmap.

void AFXAPI AfxDrawGrayBitmap(
   CDC *pDC,
   int x,
   int y,
   const CBitmap &rSrc,
   COLORREF crBackground
);

Paramètres

  • pDC
    Pointe vers la destination contrôleur de domaine.

  • x
    Coordonnée x de destination.

  • y
    Coordonnée y de destination.

  • rSrc
    Le bitmap source.

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

Notes

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

Interface originale et grisée

Exemple

void CDCView::DrawGrayBitmap(CDC* pDC)
{
   CBitmap bm;
   bm.LoadBitmap(IDB_BITMAP1);
   AfxDrawGrayBitmap(pDC, 10, 50, bm, GetSysColor(COLOR_MENU));
}

Configuration requise

Header: afxwin.h

Voir aussi

Référence

AfxGetGrayBitmap

AfxDrawDitheredBitmap

Concepts

Macro MFC et Globals

Autres ressources

Gris et fonctions de bitmap raster