上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页
摘要: /** * 缩放新的图片 */ public static String scaleImg(String waterLogoPath, String waterLogoPathTmp, String suffix, ImgWH wh) { try { suffix = suffix.replace( 阅读全文
posted @ 2023-04-20 13:11 岑惜 阅读(30) 评论(0) 推荐(0)
摘要: 导入依赖 <dependency> <groupId>com.drewnoakes</groupId> <artifactId>metadata-extractor</artifactId> <version>2.15.0</version> </dependency> 获取图片宽高 public 阅读全文
posted @ 2023-04-20 13:06 岑惜 阅读(497) 评论(0) 推荐(0)
摘要: 1.获取系统的临时文件夹地址 System.getProperty("java.io.tmpdir") 打印结果 C:\Users\cenxi\AppData\Local\Temp\ 2.获取java项目的根文件夹上一级文件夹地址 System.getProperty("user.dir") 打印结 阅读全文
posted @ 2023-04-20 10:47 岑惜 阅读(97) 评论(0) 推荐(0)
摘要: pb.command不可使用一个长字符串指令command,需要把每个指令参数分开,放入集合中 Process process = null; ProcessBuilder pb = new ProcessBuilder(); //指令太长会导致无法找到文件,被视为一个完整的指令,应该每个空格都是为 阅读全文
posted @ 2023-04-19 18:59 岑惜 阅读(329) 评论(0) 推荐(0)
摘要: 方法1 try { Process process = Runtime.getRuntime().exec(command); int resultCode = process.waitFor(); System.out.println(resultCode); } catch (Exception 阅读全文
posted @ 2023-04-19 18:49 岑惜 阅读(120) 评论(0) 推荐(0)
摘要: D:\plug\ffmpeg\win\ffmpeg-5.0.1-essentials_build\bin\ffmpeg -hide_banner -i D:\xxx\localTemplateFile\img_16817145997036.png -i D:\xxx\localTemplateFil 阅读全文
posted @ 2023-04-19 13:48 岑惜 阅读(181) 评论(0) 推荐(0)
摘要: wx.navigateBack({ delta: 1 }); 阅读全文
posted @ 2023-04-12 15:33 岑惜 阅读(22) 评论(0) 推荐(0)
摘要: 1.pdf.js下载 看我这篇随笔【h5 - 使用pdf.js 预览pdf - 岑惜 - 博客园 (cnblogs.com)】 2.html调用页面的局部代码 <body> <div style="height: 100vh;margin: 0 auto;overflow:hidden"> <ifr 阅读全文
posted @ 2023-04-07 15:58 岑惜 阅读(921) 评论(0) 推荐(0)
摘要: 下载地址 http://mozilla.github.io/pdf.js/getting_started/#download 点击后会下载,有点慢 打开后我加了两个文件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <t 阅读全文
posted @ 2023-04-04 16:27 岑惜 阅读(749) 评论(0) 推荐(0)
摘要: //通过JS屏蔽自带右键菜单 document.oncontextmenu = function (e) { return false; } 阅读全文
posted @ 2023-04-03 11:30 岑惜 阅读(393) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页