| | |
| | | row++;
|
| | | }
|
| | |
|
| | | String code_frame = "image/share/ic_qr_code_frame.png";
|
| | | if (!goods.isHasCoupon()) {
|
| | | // 无券
|
| | | code_frame = "image/share/ic_qr_code_frame_no_coupon.png";
|
| | | g2d.setColor(new Color(229, 0, 92));
|
| | | g2d.drawString("¥ ", spacing, y + 175);
|
| | | g2d.setFont(boldFont36);
|
| | |
| | |
|
| | | // 二维码图框
|
| | | g2d.setColor(Color.WHITE);
|
| | | InputStream codeFrame = ImageUtil.class.getClassLoader().getResourceAsStream(code_frame);
|
| | | InputStream codeFrame = ImageUtil.class.getClassLoader().getResourceAsStream("image/share/qr_code_frame_xcx.png");
|
| | | g2d.drawImage(ImageIO.read(codeFrame), spacing + 405, y + 20, 200, 220, null);
|
| | | // 画二维码
|
| | | int codeSize = 170;
|
| | |
| | | }
|
| | |
|
| | | if (portraitStream == null) {
|
| | | portraitStream = ImageUtil.class.getClassLoader().getResourceAsStream("image/official_icon.png");
|
| | | portraitStream = ImageUtil.class.getClassLoader().getResourceAsStream("image/official_default_head.jpg");
|
| | | }
|
| | | BufferedImage portraitImg = ImageIO.read(portraitStream);
|
| | | BufferedImage zoomInImage = ImageUtil.zoomInImage(portraitImg, 84, 84);
|
| | |
| | | row++;
|
| | | }
|
| | |
|
| | | String code_frame = "image/share/ic_qr_code_frame.png";
|
| | | String code_frame = "image/share/qr_code_frame.png";
|
| | | if (!goods.isHasCoupon()) {
|
| | | // 无券
|
| | | code_frame = "image/share/ic_qr_code_frame_no_coupon.png";
|
| | | code_frame = "image/share/qr_code_frame_no_coupon.png";
|
| | |
|
| | | g2d.setColor(new Color(229, 0, 92));
|
| | | g2d.drawString("¥ ", spacing, y + 175);
|