There is a task to change the transparency of the color using the volume filter
the code
[B]if (Volume >=1000)[/B] { Brush newBrush = Brushes.Green.Clone(); [B]newBrush.Opacity = 0.2;[/B] BarBrushes[0] = newBrush; }
If the volume is equal to the minimum = transparency 0.2 (Min)
if the volume is 2 x times greater than the = transparency 0.9 (Max)
It is necessary for the transparency to change itself in the min-max range, depending on the volume
what is the easiest way to implement this?
please with an example with syntax
Thanks in advance!
Comment