diff options
author | Sven Gothel <[email protected]> | 2013-09-16 03:13:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-16 03:13:16 +0200 |
commit | 8afc1091532b0f18f30325aa3a504e7a7e975ce9 (patch) | |
tree | 2371115b8740066677bdcaa51fd9de7c760cac41 /src/test/com | |
parent | 06b47d1f738c94ca28c0959a12b05d880bc8a78b (diff) |
TestTiledPrintingNIOImageSwingAWT: Add layered test ; Use 300dpi instead of 600dpi
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java | 12 |
1 files changed, 9 insertions, 3 deletions
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[]) { |