CD2DSolidColorBrush::CD2DSolidColorBrush
Constructs a CD2DSolidColorBrush object.
CD2DSolidColorBrush(
CRenderTarget* pParentTarget,
D2D1_COLOR_F color,
CD2DBrushProperties* pBrushProperties = NULL,
BOOL bAutoDestroy = TRUE
);
CD2DSolidColorBrush(
CRenderTarget* pParentTarget,
COLORREF color,
int nAlpha = 255,
CD2DBrushProperties* pBrushProperties = NULL,
BOOL bAutoDestroy = TRUE
);
Parameters
pParentTarget
A pointer to the render target.color
The red, green, blue, and alpha values of the brush's color.pBrushProperties
A pointer to the opacity and transformation of a brush.bAutoDestroy
Indicates that the object will be destroyed by owner (pParentTarget).nAlpha
The opacity of the brush's color.
Requirements
Header: afxrendertarget.h