-
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
-
Mobile-Agent-Sample
移动Agent实例:使用RMI实现移动Agent(This set of files illustrates the use of a transportable object
(a mobile agent) on one computer only.)
- 2012-04-09 13:15:02下载
- 积分:1
-
j2me mobile phone calculator source code, suitable for novice user
j2me手机计算器源代码适合初学者。-j2me mobile phone calculator source code, suitable for novice user
- 2022-05-09 00:33:13下载
- 积分:1
-
J2ME programming classic book, the author MARTIN J. WELLS, detailed descriptions...
J2ME编程的经典书籍,作者MARTIN J. WELLS,详尽介绍了J2ME编程基础-J2ME programming classic book, the author MARTIN J. WELLS, detailed descriptions of the programming based on the J2ME
- 2022-06-12 18:45:00下载
- 积分:1
-
j2me开发平台拾建环境说明和实例(源代码)!其内容来自internet,并非原作。...
j2me开发平台拾建环境说明和实例(源代码)!其内容来自internet,并非原作。-j2me development platform built environment picking notes and examples (source code)! Its content from the internet, not originals.
- 2022-06-21 09:55:46下载
- 积分:1
-
日本游戏,java手机游戏,j2me,源码,龙珠
日本游戏,java手机游戏,j2me,源码,龙珠-Japanese games, java mobile games, j2me, source code, Pearl
- 2022-01-25 15:01:08下载
- 积分:1
-
一个jsr184的火焰粒子效果,用于J2ME M3G开发,很有启发意义
一个jsr184的火焰粒子效果,用于J2ME M3G开发,很有启发意义-Jsr184 a flame particle effects for J2ME M3G development, is very instructive
- 2022-02-12 18:55:04下载
- 积分:1
-
MathFP j2me的库类 学j2me的都知到的
MathFP j2me的库类 学j2me的都知到的-MathFP j2me libraries of all types of learning j2me to know the
- 2023-05-14 16:35:03下载
- 积分:1
-
我是用PB的,现在要下串口代码谢了!
我是用PB的,现在要下串口代码谢了!-I was PB, under serial code to thank!
- 2022-01-25 18:19:06下载
- 积分:1
-
developed a card game, which pay source, there still is a certain source of the...
基于J2ME 开发的一个卡片游戏,内付源码,源码中还有一定的注释-developed a card game, which pay source, there still is a certain source of the Notes
- 2023-02-01 02:45:04下载
- 积分:1