Partager via


CRenderTarget::COLORREF_TO_D2DCOLOR

Converts GDI color and alpha values to the D2D1_COLOR_F object.

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

Parameters

  • color
    RGB value.

  • nAlpha

Return Value

D2D1_COLOR_F value.

Requirements

Header: afxrendertarget.h

See Also

Reference

CRenderTarget Class