I am doing the following to fill a rectangle with a certain opacity.
SolidColorBrush fillColor = new SolidColorBrush(myColor);
fillColor.Opacity = 0.3;
rectangle1.Fill = fillColor;
A rectangle is part of a user control that is on a black background. The problem is that I get opacity on a white background. How to change it as if the opacity was applied to the color on a black background.
The next color that I get to fill the green.
(like a white background) I need something like this.
(that is, as superimposed on a black background)
source
share