I think I've figured out what I'm looking for.
Just in case anybody else needs it, here is an example code:
Brush OpaceBrush = this.Stroke.Brush.Clone(); Print(OpaceBrush.ToString()); OpaceBrush.Opacity = 0.05; Print(OpaceBrush.Opacity); Print(Environment.NewLine); Color nw = ((SolidColorBrush)OpaceBrush).Color; Print(nw.ToString()); nw.A = (byte)(OpaceBrush.Opacity * 255); Print(nw.A); Print(nw.ToString()); OpaceBrush = null;
0.05
#FF1E90FF
12
#0C1E90FF
Leave a comment: