Exemplo n.º 1
0
        /// <summary/>
        protected RenderingWindow(Variation v)
        {
            variation    = v;
            photographer = new Photographer();

            RenderingTest.Invoke(DispatcherPriority.Normal, CreateWindow, null);

            // If the window position is not valid, that means the system placed it somewhere on the primary display.
            // (0,0) will get us the primary display.
            Point windowPosition = v.IsWindowPositionValid ? v.WindowPosition : new Point(0, 0);

            ColorOperations.DiscoverBitDepth(windowPosition);

            if (v.RenderingMode != null)
            {
                RenderingTest.Invoke(DispatcherPriority.Normal, SetRenderingMode, v.RenderingMode);
            }
        }
Exemplo n.º 2
0
        internal CoreGraphicsTest CreateTest()
        {
            CoreGraphicsTest test = (CoreGraphicsTest)Activator.CreateInstance(testType, null);

            if (test == null)
            {
                throw new ApplicationException("Could not create test class: " + testClass);
            }

            if (test is RenderingTest)
            {
                RenderingTest.Invoke(DispatcherPriority.Send, InitRenderingTest, test);
            }
            else
            {
                test.Init(this);
            }

            return(test);
        }
Exemplo n.º 3
0
 /// <summary/>
 public override void Dispose()
 {
     RenderingTest.Invoke(DispatcherPriority.Normal, Dispose, null);
 }
Exemplo n.º 4
0
 /// <summary/>
 public void SetBackgroundColor(Color c)
 {
     RenderingTest.Invoke(DispatcherPriority.Normal, SetBackgroundDelegate, c);
 }