// 绘图 画图
BufferedImage bi = new BufferedImage(308, 450, BufferedImage.TYPE_INT_RGB);
Graphics2D g = bi.createGraphics(); // 创建Graphics2D对象
g.setBackground(Color.WHITE);
g.clearRect(0, 0, 308, 450);
BufferedImage qrMchImg = ImageIO.read(new File("D:\\1.jpg"));
BufferedImage zhifub = ImageIO.read(new File("D:\\11.jpg"));
// 在图中添加图片
g.drawImage(qrMchImg, 0, 0 , 308, 450, null);
g.drawImage(zhifub, 0, 0 , 30, 30, null);
// 绘图完成,释放资源:
g.dispose();
bi.flush();
ImageIO.write(bi, "jpg", new File("D:\\2.jpg"));
日夜颠倒头发少 ,单纯好骗恋爱脑 ,会背九九乘法表 ,下雨只会往家跑 ,搭讪只会说你好 ---- 2050781802@qq.com