-
java 为图片添加水印 示例
为图片添加水印 【核心代码】 /*** 添加水印* @param imagePath 图片绝对路径* @param watermarkPath 水印图片绝对路径* @param position 水印图片位置* @return 生成水印图片的绝对路径*/public static String addWatermark(String imagePath, String watermarkPath, String position) {logger.info("为图片({})在位置{}添加水印({})", imagePath, position, watermarkPath);if (StringUtils.isNotBlank(imagePath) && StringUtils.isNotBlank(watermarkPath)) {File image = new File(imagePath);File watermark = new File(watermarkPath);Position pos = getPostion(position);if (image.isFile() && image.exists() && watermark.isFile()) {try {BufferedImage bi = ImageIO.read(image);Builder builder = Thumbnails.of(imagePath);BufferedImage watermarkImg = ImageIO.read(watermark);File newWatermark = null;// 原图的宽或高是水印图片宽或高的2倍及以上,则直接打上水印原图;否则缩略水印图片,以原图宽或高的二分之一if (bi.getWidth() / watermarkImg.getWidth()
- 2017-10-13下载
- 积分:1
-
- 2022-07-20 23:44:41下载
- 积分:1
-
中国象棋。除了它的智商不怎么样。别的没什么。我曾经只用一半的棋子干掉它...
vc++数字图象处理讲义和代码(内容丰富包含C++所有数字图象处理技术资料几原代码)-vc digital image processing lectures and code (C rich content includes all the digital image processing technology information source for the original)
- 2022-02-09 15:13:37下载
- 积分:1
-
J2ME achieved one small game
j2me实现的一款小游戏-J2ME achieved one small game
- 2022-03-07 05:30:15下载
- 积分:1
-
坦克大战,入门者必看,能使你掌握J2ME的开发流程,好东西啊...
坦克大战,入门者必看,能使你掌握J2ME的开发流程,好东西啊-Tankedaizhan, beginners watched every game, you can master the process of developing J2ME, good things ah!
- 2022-08-24 16:49:25下载
- 积分:1
-
手机弹球游戏以发射物碰撞障碍物情景做开发,主要采用线程的方式以及变量控制对游戏进行控制,代码具有很好的运行效果...
手机弹球游戏以发射物碰撞障碍物情景做开发,主要采用线程的方式以及变量控制对游戏进行控制,代码具有很好的运行效果-It is very good!
- 2022-02-21 05:23:35下载
- 积分:1
-
基于J2ME平台发送图片到servlet
基于J2ME平台发送图片到servlet-based J2ME platform to send pictures servlet
- 2022-05-28 03:33:31下载
- 积分:1
-
j2me 校园手机客户端上载传输程序
j2me 校园手机客户端上载传输程序-j2me campus phone client on the transmission procedures
- 2022-07-03 03:36:31下载
- 积分:1
-
j2me手机编程规范JSR
j2me手机编程规范JSR-75文档,个人信息管理部分-j2me mobile programming JSR-75 specification documents, personal information management component
- 2023-06-03 05:05:03下载
- 积分:1
-
The source code for this package is located in src/gov/nist/sip/proxy. The proxy...
The source code for this package is located in src/gov/nist/sip/proxy. The proxy
is a pure JAIN-SIP application: it does not need proprietary nist-sip
classes in addition of those defined in JAIN-SIP 1.1, you can substitute
the NIST-SIP stack by another JAIN-SIP-1.1 compliant stack and it should
interoperate.
he proxy can act as presence server and be able to process NOTIFY and
SUBSCRIBE requests. If this parameter is disabled, the proxy will simply
forward those kind of requests following the appropriate routing decision.
- 2023-08-07 05:25:04下载
- 积分:1