Example #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);
            }
        }