예제 #1
0
        public void IsValid()
        {
            int width  = 21;
            int height = 128;

            var image = new Image(width, height, ImageBaseType.Rgb)
            {
                { new Layer("test", ImageType.Rgb), 0 }
            };

            var display = new Display(image);

            Assert.IsTrue(display.Valid);

            display.Delete();
            image.Delete();
            Display.DisplaysFlush();
            Assert.IsFalse(display.Valid);
        }
예제 #2
0
        void CallRender()
        {
            var stopWatch = new Stopwatch();

            stopWatch.Start();

            GetRequiredParameters();

            Render(_image, _drawable);
            Render(_drawable);
            Render(_image);
            Render();

            Display.DisplaysFlush();

            stopWatch.Stop();
            var ts = stopWatch.Elapsed;

            Console.WriteLine(String.Format("Processing time: {0:00}:{1:00}:{2:00}.{3:00}",
                                            ts.Hours, ts.Minutes, ts.Seconds,
                                            ts.Milliseconds / 10));
        }
예제 #3
0
 static public void DisplaysFlush()
 {
     Display.DisplaysFlush();
 }