Package org.jemmy.image

Examples of org.jemmy.image.AWTImage


         Object result = makeAnOperation("createScreenCapture", new Object[] {
            new java.awt.Rectangle(screenRect.x, screenRect.y, screenRect.width,
                    screenRect.height) },
            new Class[] { java.awt.Rectangle.class });
         if (result.getClass().isAssignableFrom(BufferedImage.class)) {
             return new AWTImage(BufferedImage.class.cast(result));
         } else {
             throw new JemmyException("Screen capture (" + result
                     + ") is not a BufferedImage");
         }
    }
View Full Code Here


         Object result = makeAnOperation("createScreenCapture", new Object[] {
            new java.awt.Rectangle(screenRect.x, screenRect.y, screenRect.width,
                    screenRect.height) },
            new Class[] { java.awt.Rectangle.class });
         if (result.getClass().isAssignableFrom(BufferedImage.class)) {
             return new AWTImage(BufferedImage.class.cast(result));
         } else {
             throw new JemmyException("Screen capture (" + result
                     + ") is not a BufferedImage");
         }
    }
View Full Code Here

TOP

Related Classes of org.jemmy.image.AWTImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.