Partager via


CRenderTarget::COLORREF_TO_D2DCOLOR

Convertit la couleur GDI et les valeurs alpha en objet D2D1_COLOR_F.

static D2D1_COLOR_F COLORREF_TO_D2DCOLOR(
   COLORREF color,
   int nAlpha = 255
);

Paramètres

  • color
    Valeur RVB.

  • nAlpha

Valeur de retour

Valeur D2D1_COLOR_F.

Configuration requise

En-tête : afxrendertarget.h

Voir aussi

Référence

Classe CRenderTarget