CRenderTarget::COLORREF_TO_D2DCOLOR

Konvertiert GDI-Farbe und Alphawerte in das D2D1_COLOR_F-Objekt.

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

Parameter

  • color
    RGB-Wert.

  • nAlpha

Rückgabewert

D2D1_COLOR_F-Wert.

Anforderungen

Header: afxrendertarget.h

Siehe auch

Referenz

CRenderTarget Class