From 8afc1091532b0f18f30325aa3a504e7a7e975ce9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Sep 2013 03:13:16 +0200 Subject: TestTiledPrintingNIOImageSwingAWT: Add layered test ; Use 300dpi instead of 600dpi --- .../junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/test/com/jogamp/opengl') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java index ad699c0f5..68c4c683f 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java @@ -240,11 +240,11 @@ public class TestTiledPrintingNIOImageSwingAWT extends UITestCase { final BufferedImage image = DirectDataBufferInt.createBufferedImage(frame.getWidth(), frame.getHeight(), 4, null /* location */); printOffscreenToFile(image, frame, caps, 1, "newio_072dpi"); } - // paint offscreen: NIO 600dpi + // paint offscreen: NIO 300dpi { - final int scale = (int) ( 600.0 / 72.0 + 0.5 ); + final int scale = (int) ( 300.0 / 72.0 + 0.5 ); final BufferedImage image = DirectDataBufferInt.createBufferedImage(frame.getWidth()*scale, frame.getHeight()*scale, 4, null /* location */); - printOffscreenToFile(image, frame, caps, 2, "newio_600dpi"); + printOffscreenToFile(image, frame, caps, 2, "newio_300dpi"); } Assert.assertNotNull(frame); @@ -270,6 +270,12 @@ public class TestTiledPrintingNIOImageSwingAWT extends UITestCase { runTestGL(caps, false); } + @Test + public void test01_Offscreen_aa0_layered() throws InterruptedException, InvocationTargetException { + GLCapabilities caps = new GLCapabilities(glp); + runTestGL(caps, true); + } + static long duration = 500; // ms public static void main(String args[]) { -- cgit v1.2.3