private static SolidColorBrush GetComputedBrush(ClosedCaptionColor color, Color computedColor, ClosedCaptionOpacity opacity)
        {
            SolidColorBrush brush;

            if (color != ClosedCaptionColor.Default)
            {
                brush = new SolidColorBrush(computedColor);
            }
            else
            {
                brush = new SolidColorBrush();
            }
            if (opacity != ClosedCaptionOpacity.Default)
            {
                brush.Opacity = GetComputedOpacity(opacity);
            }
            return(brush);
        }
 private static SolidColorBrush GetComputedBrush(ClosedCaptionColor color, Color computedColor, ClosedCaptionOpacity opacity)
 {
     SolidColorBrush brush;
     if (color != ClosedCaptionColor.Default)
     {
         brush = new SolidColorBrush(computedColor);
     }
     else
     {
         brush = new SolidColorBrush();
     }
     if (opacity != ClosedCaptionOpacity.Default)
     {
         brush.Opacity = GetComputedOpacity(opacity);
     }
     return brush;
 }