Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
java.awt.Graphics現在の画面の長方形の部分をコピーして画像変数として保存するために使用できる方法はありますか? そうでない場合、私が使用できる最良の代替手段は何ですか?
java.awt.Graphics
アプレットが署名されていて、十分な権限がある場合は、java.awt.Robot利用できます。
java.awt.Robot
Robot robot = new Robot(); Rectangle rect = new Rectangle(0, 0, displayMode.getWidth(), displayMode.getHeight()); BufferedImage image = robot.createScreenCapture(rect);