mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
7b0f88d110
commit
fb7e88515a
42
hutool-swing/README.md
Normal file
42
hutool-swing/README.md
Normal file
@ -0,0 +1,42 @@
|
||||
<p align="center">
|
||||
<a href="https://hutool.cn/"><img src="https://cdn.jsdelivr.net/gh/looly/hutool-site/images/logo.jpg" width="45%"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<strong>🍬A set of tools that keep Java sweet.</strong>
|
||||
</p>
|
||||
<p align="center">
|
||||
👉 <a href="https://hutool.cn">https://hutool.cn/</a> 👈
|
||||
</p>
|
||||
|
||||
## 📚Hutool-swing 模块介绍
|
||||
|
||||
`Hutool-swing`提供了swing桌面和图片多媒体相关封装,此模块大部分工具依赖于桌面环境,也要注意不同操作系统的差异。
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 🛠️包含内容
|
||||
|
||||
### 剪贴板(clipboard)
|
||||
|
||||
提供了桌面环境下剪贴板的读取、写入和监听功能。
|
||||
|
||||
### 图片(img)
|
||||
|
||||
- `ImgUtil` 提供了图片工具(旋转、灰度、裁切、缩放、描边)等功能。
|
||||
- `ImgMetaUtil` 封装`metadata-extractor`提供图片元信息读取。
|
||||
- `FontUtil` 提供字体相关工具,如字体创建等
|
||||
- `GraphicsUtil` 提供绘图相关封装,包括绘制图片、字符串等。
|
||||
- `BackgroundRemoval` 提供背景色去除功能。
|
||||
- `RenderingHintsBuilder`提供定义和管理键和关联值的集合构建器。
|
||||
- `ImgWriter` 提供图片写出封装。
|
||||
- `Img` 提供图片操作封装。
|
||||
|
||||
### 图片验证码(captcha)
|
||||
|
||||
提供干扰验证码、GIF动态验证码、数字计算验证码等相关功能。
|
||||
|
||||
### 其它工具
|
||||
|
||||
- `DesktopUtil` 提供桌面相关工具,如打开文件、打开浏览器等操作
|
||||
- `RobotUtil` 提供自动化相关工具,如鼠标移动、键盘敲击、截屏等功能
|
||||
- `ScreenUtil` 提供屏幕相关工具,如截屏、获取分辨率等
|
@ -93,7 +93,7 @@ public class DesktopUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用平台默认浏览器打开指定URL地址
|
||||
* 使用平台默认邮件客户端打开邮件程序
|
||||
*
|
||||
* @param mailAddress 邮件地址
|
||||
*/
|
||||
|
@ -13,6 +13,9 @@ import java.io.File;
|
||||
* @since 4.1.14
|
||||
*/
|
||||
public class ScreenUtil {
|
||||
/**
|
||||
* Dimension
|
||||
*/
|
||||
public static Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user