FizVizController/FizVizController/Views/BackgroundColorConfig.xaml.cs
/// <summary>
/// Generate an array of background colors that is all a single color
/// </summary>
/// <param name="colors"></param>
/// <returns></returns>
Generate an array of background colors that is all a single color
Generate an array of background colors that is all a single color
private bool GetSolid(IList<Color> colors)
        {
            if (Color1ComboBox.SelectedValue == null)
            {
                Color1ComboBox.BorderBrush = new SolidColorBrush(Colors.Red);
                return false;
            }
            Color color1 = (Color) Color1ComboBox.SelectedValue;
            double angle1Start, angle1End;
            if (!ReadAngles(StartAngle1TextBox, EndAngle1TextBox, out angle1Start, out angle1End))
                return false;
            int color1StartPixel, color1EndPixel;
            PixelsForAngles(angle1Start, angle1End, out color1StartPixel, out color1EndPixel);
            for (int i = color1StartPixel; i <= color1EndPixel; i++)
            {
                colors[i] = color1;
            }
            return true;
        }
private bool GetSolid ( IList < Color > colors ) { if ( Color1ComboBox . SelectedValue == null ) { Color1ComboBox . BorderBrush = new SolidColorBrush ( Colors . Red ) ; return false ; } Color color1 = ( Color ) Color1ComboBox . SelectedValue ; double angle1Start , angle1End ; if ( ! ReadAngles ( StartAngle1TextBox , EndAngle1TextBox , out angle1Start , out angle1End ) ) return false ; int color1StartPixel , color1EndPixel ; PixelsForAngles ( angle1Start , angle1End , out color1StartPixel , out color1EndPixel ) ; for ( int i = color1StartPixel ; i <= color1EndPixel ; i ++ ) { colors [ i ] = color1 ; } return true ; }
Generate an array of background colors that is all a single color
Generate an array of background colors that is all a single color
None
colors
IList<Color>
None