-
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
-
消息
Messaging- MIDP的是一个彩信客户端,支持MIDP2.0/WMA1.1终端。它是用来通过短信和HTTP接收彩信通知-Messaging-MIDP is a MMS Client that runs on a MIDP2.0/WMA1.1 capable device. It is designed to receive MMS notifications over SMS and HTTP, and supports retrieving MMS content external to a carrier system.
- 2022-12-31 19:10:10下载
- 积分:1
-
j2me编写的关于校园的信息,公告,学习成绩,天气,二手市场等的信息...
j2me编写的关于校园的信息,公告,学习成绩,天气,二手市场等的信息-j2me prepared information on the campus, notices, school, weather, the second-hand market information, etc.
- 2022-08-24 17:13:27下载
- 积分:1
-
a mobile Java games, MDIP2 operating environment, including all the resources an...
一个手机JAVA游戏,MDIP2的运行环境,包括所有的资源和源代码,俄罗撕方块-a mobile Java games, MDIP2 operating environment, including all the resources and source code, Russian tear chunks
- 2022-04-13 00:40:35下载
- 积分:1
-
Enhydra的KXML是一个只占很小存储空间的XML语法分析程序,对于J2ME应用程序非常适合。它有一个非常独特的DOM操作方法和被称为Pull的语法分析方法...
Enhydra的KXML是一个只占很小存储空间的XML语法分析程序,对于J2ME应用程序非常适合。它有一个非常独特的DOM操作方法和被称为Pull的语法分析方法-Enhydra KXML is one of only a small storage space XML syntax analysis procedures for J2ME applications well suited. It is a very unique DOM methods of operation and called Pull syntax analysis method
- 2022-01-24 16:49:36下载
- 积分:1
-
Photoalbum,开发于J2ME, 适用于支持MIDP2.0 and CLDC1.1 的手机或其他移动设备。...
Photoalbum,开发于J2ME, 适用于支持MIDP2.0 and CLDC1.1 的手机或其他移动设备。 -Photoalbum, developed in J2ME, applicable to support the MIDP2.0 and CLDC1.1 the mobile phone or other mobile devices.
- 2022-08-24 11:52:14下载
- 积分:1
-
JAVA校园论坛系统源码(含数据库脚本)
注册,登录,发帖,点赞,搜索,评论,后台管理等功能
- 2020-02-11下载
- 积分:1
-
SyncML手册及其编程,希望对大家有帮助;
SyncML手册及其编程,希望对大家有帮助;-SyncML manual and programming, we want to help;
- 2022-11-13 20:15:04下载
- 积分:1
-
Paiwenzi
这是我自己编写的一个手机游戏拍蚊子,里面主要用到的是j2me中的Sprite,下载后就可以直接运行。(This is what I have written a mobile game to beat the mosquitoes, which mainly used in the Sprite j2me download after can be run directly.)
- 2012-05-25 22:09:50下载
- 积分:1
-
Sun公司的J2ME官方例程若干,对于初学者或许算是一个不错的材料吧...
Sun公司的J2ME官方例程若干,对于初学者或许算是一个不错的材料吧--Sun"s J2ME official number of routines for beginners may be a good material it-
- 2022-08-21 09:55:39下载
- 积分:1