public class ScreenUtil
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.awt.Dimension |
dimension |
| 构造器和说明 |
|---|
ScreenUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.awt.image.BufferedImage |
captureScreen()
截取全屏
|
static java.io.File |
captureScreen(java.io.File outFile)
截取全屏到文件
|
static java.awt.image.BufferedImage |
captureScreen(java.awt.Rectangle screenRect)
截屏
|
static java.io.File |
captureScreen(java.awt.Rectangle screenRect,
java.io.File outFile)
截屏
|
static int |
getHeight()
获取屏幕高度
|
static java.awt.Rectangle |
getRectangle()
获取屏幕的矩形
|
static int |
getWidth()
获取屏幕宽度
|
public static int getWidth()
public static int getHeight()
public static java.awt.Rectangle getRectangle()
public static java.awt.image.BufferedImage captureScreen()
RobotUtil.captureScreen()public static java.io.File captureScreen(java.io.File outFile)
outFile - 写出到的文件RobotUtil.captureScreen(File)public static java.awt.image.BufferedImage captureScreen(java.awt.Rectangle screenRect)
screenRect - 截屏的矩形区域RobotUtil.captureScreen(Rectangle)public static java.io.File captureScreen(java.awt.Rectangle screenRect,
java.io.File outFile)
screenRect - 截屏的矩形区域outFile - 写出到的文件RobotUtil.captureScreen(Rectangle, File)Copyright © 2018. All rights reserved.