void SetWhiteRenderBackground( View3D view )
    {
      RenderingSettings rs = view.GetRenderingSettings();
      rs.BackgroundStyle = BackgroundStyle.Color;

      ColorBackgroundSettings cbs
        = (ColorBackgroundSettings) rs
          .GetBackgroundSettings();

      cbs.Color = new Color( 255, 0, 0 );
      rs.SetBackgroundSettings( cbs );
      view.SetRenderingSettings( rs );
    }
Exemple #2
0
        void SetWhiteRenderBackground(View3D view)
        {
            RenderingSettings rs = view.GetRenderingSettings();

            rs.BackgroundStyle = BackgroundStyle.Color;

            ColorBackgroundSettings cbs
                = (ColorBackgroundSettings)rs
                  .GetBackgroundSettings();

            cbs.Color = new Color(255, 0, 0);
            rs.SetBackgroundSettings(cbs);
            view.SetRenderingSettings(rs);
        }