-
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
-
j2me游戏快乐蛇0.2(游戏源码已上载)地图编辑器源码,vc6.0+MFC...
j2me游戏快乐蛇0.2(游戏源码已上载)地图编辑器源码,vc6.0+MFC-J2ME game happy snake 0.2 (FOSS game has been uploaded) Map Editor source, vc6.0 MFC
- 2022-08-26 04:18:16下载
- 积分:1
-
可以实现通讯录,具有显示,添加,查询,删除等功能
可以实现通讯录,具有显示,添加,查询,删除等功能-Address Book can be achieved with a display, add, query, delete and other functions
- 2022-03-22 20:50:27下载
- 积分:1
-
这是个嵌套小程序啊 虽然很简单但是它的思想对于以后的开化过程中是很重要的...
这是个嵌套小程序啊 虽然很简单但是它的思想对于以后的开化过程中是很重要的-This a small nested procedures ah although it is very simple ideas for the future of culturing process is very important
- 2022-03-14 12:51:53下载
- 积分:1
-
一款修改过的手机贪食蛇游戏,可以同时有几条贪食蛇共同和玩家操作的贪食蛇竞争...
一款修改过的手机贪食蛇游戏,可以同时有几条贪食蛇共同和玩家操作的贪食蛇竞争-A modified贪食蛇phone games, can have several common and贪食蛇operation贪食蛇player competition
- 2022-03-17 19:56:05下载
- 积分: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
-
一款JAVA小游戏的源码,主要是供学习使用.运用了j2me平台.
一款JAVA小游戏的源码,主要是供学习使用.运用了j2me平台.-A JAVA game
- 2023-03-11 14:00:03下载
- 积分:1
-
脚本开发工具和源代码,用于J2me中RPG游戏的脚本开发和执行,相当好用的一套工具,并含有脚本开发工具的源代码和一个现成的游戏脚本...
脚本开发工具和源代码,用于J2me中RPG游戏的脚本开发和执行,相当好用的一套工具,并含有脚本开发工具的源代码和一个现成的游戏脚本-Script development tools and source code, for J2me games in the RPG script development and implementation of a set of very useful tools, and contains a script development tools, source code and a ready-made game script
- 2022-08-25 02:20:29下载
- 积分:1
-
J2MEBluetoothRumeng
J2ME蓝牙实战入门,J2ME蓝牙实战入门,J2ME蓝牙实战入门(J2ME Bluetooth actual entry, J2ME Bluetooth actual entry, J2ME Bluetooth actual entry)
- 2009-12-23 15:13:07下载
- 积分:1
-
一个在手机上非常流行的小游戏,名字叫《是男人就撑二十一秒》,很值得一玩,这是源程序,读者可以改进。...
一个在手机上非常流行的小游戏,名字叫《是男人就撑二十一秒》,很值得一玩,这是源程序,读者可以改进。-phone in a very popular small game, named "man himself is 21 seconds" are worth a play, this is the source, readers could be improved.
- 2022-10-28 02:15:03下载
- 积分:1