Share via


CD2DBrush::SetOpacity

Sets the degree of opacity of this brush

void SetOpacity(
   FLOAT opacity
);

Parameters

  • opacity
    A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DBrush Class