# HG changeset patch # User Pavel Tisnovsky # Date 1455538689 -3600 # Node ID e33f9e5e5e9297bf4350bfbff242be1c5c7ddd59 # Parent 88e596b277c4a14ed7e6ad123fe5cb7403c25cfb Added five new tests into BitBltUsingBgColorAlpha. diff -r 88e596b277c4 -r e33f9e5e5e92 ChangeLog --- a/ChangeLog Fri Feb 12 11:40:24 2016 +0100 +++ b/ChangeLog Mon Feb 15 13:18:09 2016 +0100 @@ -1,3 +1,8 @@ +2016-02-15 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: + Added five new tests into BitBltUsingBgColorAlpha. + 2016-02-12 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: diff -r 88e596b277c4 -r e33f9e5e5e92 src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java --- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Feb 12 11:40:24 2016 +0100 +++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Mon Feb 15 13:18:09 2016 +0100 @@ -2983,6 +2983,81 @@ } /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlueAlpha000(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue, 0.0f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlueAlpha025(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue, 0.25f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlueAlpha050(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue, 0.5f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlueAlpha075(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue, 0.75f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlueAlpha100(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue, 1.00f); + } + + /** * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. * Background color is set to Color.black. *