Package com.vsked.util

Examples of com.vsked.util.Screen


    ServletOutputStream out = response.getOutputStream();
    try {
      Robot r = new Robot();
      Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
      Rectangle re = new Rectangle(d);
      Screen s = new Screen(r, re);
      ImageIO.setUseCache(false);
      ImageIO.write(s.getScreenPictureBuffer(), "jpeg", out);
    } catch (Exception e) {
      //e.printStackTrace();
    }finally{
      out.close();
    }
View Full Code Here

TOP

Related Classes of com.vsked.util.Screen

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.