Mercurial > hg > gfx-test
changeset 681:040672d9ed90 draft
Another update of BitBltUsingBgColor.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Mon, 02 Feb 2015 10:32:15 +0100 |
parents | 497e87716479 |
children | 2bd71539e5c0 |
files | ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColor.java |
diffstat | 2 files changed, 141 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Jan 21 11:45:37 2015 +0100 +++ b/ChangeLog Mon Feb 02 10:32:15 2015 +0100 @@ -1,3 +1,8 @@ +2015-02-02 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/BitBltUsingBgColor.java: + Another update. + 2015-01-21 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Jan 21 11:45:37 2015 +0100 +++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Mon Feb 02 10:32:15 2015 +0100 @@ -2547,6 +2547,142 @@ } /** + * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_int_bgr}. + * + * @param image + * image to be used as a destination for bitblt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundcolor + * background color + * @return test result status - passed, failed or error + */ + private testresult dobitbltdiagonalcolorstripesbufferedimagetypeintbgr(testimage image, graphics2d graphics2d, + color backgroundcolor) + { + return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_int_bgr, backgroundcolor); + } + + /** + * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_int_rgb}. + * + * @param image + * image to be used as a destination for bitblt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundcolor + * background color + * @return test result status - passed, failed or error + */ + private testresult dobitbltdiagonalcolorstripesbufferedimagetypeintrgb(testimage image, graphics2d graphics2d, + color backgroundcolor) + { + return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_int_rgb, backgroundcolor); + } + + /** + * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_byte_binary}. + * + * @param image + * image to be used as a destination for bitblt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundcolor + * background color + * @return test result status - passed, failed or error + */ + private testresult dobitbltdiagonalcolorstripesbufferedimagetypebytebinary(testimage image, graphics2d graphics2d, + color backgroundcolor) + { + return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_byte_binary, backgroundcolor); + } + + /** + * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundColor + * background color + * @return test result status - PASSED, FAILED or ERROR + */ + private TestResult doBitBltDiagonalColorStripesBufferedImageTypeByteGray(TestImage image, Graphics2D graphics2d, + Color backgroundColor) + { + return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, backgroundColor); + } + + /** + * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_BYTE_INDEXED}. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundColor + * background color + * @return test result status - PASSED, FAILED or ERROR + */ + private TestResult doBitBltDiagonalColorStripesBufferedImageTypeByteIndexed(TestImage image, Graphics2D graphics2d, + Color backgroundColor) + { + return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, backgroundColor); + } + + /** + * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_555_RGB}. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundColor + * background color + * @return test result status - PASSED, FAILED or ERROR + */ + private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d, + Color backgroundColor) + { + return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, backgroundColor); + } + + /** + * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_565_RGB}. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundColor + * background color + * @return test result status - PASSED, FAILED or ERROR + */ + private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d, + Color backgroundColor) + { + return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, backgroundColor); + } + + /** + * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_GRAY}. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @param backgroundColor + * background color + * @return test result status - PASSED, FAILED or ERROR + */ + private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d, + Color backgroundColor) + { + return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, backgroundColor); + } + + /** * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR_Pre. * Background color is set to Color.black. *