# HG changeset patch # User Pavel Tisnovsky # Date 1459936524 -7200 # Node ID 287a10068e05a171cb5913a30200fbce7e5f9ede # Parent 93f935b8bb37147cd9ff75f18cb157bd94fa5bcc Five new tests added ClippingCircleByRectangleShape. diff -r 93f935b8bb37 -r 287a10068e05 ChangeLog --- a/ChangeLog Tue Apr 05 10:59:38 2016 +0200 +++ b/ChangeLog Wed Apr 06 11:55:24 2016 +0200 @@ -1,3 +1,8 @@ +2016-04-06 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java: + Five new tests added ClippingCircleByRectangleShape. + 2016-04-05 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltConvolveOp.java: diff -r 93f935b8bb37 -r 287a10068e05 src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java --- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Tue Apr 05 10:59:38 2016 +0200 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Wed Apr 06 11:55:24 2016 +0200 @@ -812,6 +812,101 @@ /** * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 0% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 0% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(image, graphics2d, 0); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 25% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(image, graphics2d, 25); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 50% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(image, graphics2d, 50); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 75% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(image, graphics2d, 75); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 100% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(image, graphics2d, 100); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular shape. Circle is * rendered using alpha paint with white color at 0% transparency. * * @param image