用java 合并两张tif格式的图片或多张 用java 合并两张tif格式的图片或多张 高手救我 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 java这方面是不好做的!你何必好了再调用吧! File _file = new File(imagePath); // 读入文件 Image src = javax.imageio.ImageIO.read(_file); // 构造Image对象 int wideth = src.getWidth(null); // 得到源图宽 int height = src.getHeight(null); // 得到源图长 BufferedImage tag = new BufferedImage(wideth, height, BufferedImage.TYPE_INT_RGB); tag.getGraphics().drawImage(src, 0, 0, wideth, height, null); // 绘制缩小后的图 ImageIO.write(tag, "JPEG", response.getOutputStream()); JPanel 问题 求教 有答案速度结贴~~~~~~~~~~~~ Java排课系统 关于JavaLinkedList JSP数据库操作 大家好!我有个路径问题请教大家 帮忙看一下程序中的错误~~~ javaIO、文件上传 怎样设计单选菜单? 如何让jframe最大化? MQ系列。。。 一个正则求助 一个有趣的问题
File _file = new File(imagePath); // 读入文件
Image src = javax.imageio.ImageIO.read(_file); // 构造Image对象
int wideth = src.getWidth(null); // 得到源图宽
int height = src.getHeight(null); // 得到源图长
BufferedImage tag = new BufferedImage(wideth, height, BufferedImage.TYPE_INT_RGB);
tag.getGraphics().drawImage(src, 0, 0, wideth, height, null); // 绘制缩小后的图
ImageIO.write(tag, "JPEG", response.getOutputStream());