| | |
| | | BufferedImage bufferedImage = ImageIO.read(in2); |
| | | int width = bufferedImage.getWidth(); |
| | | int height = bufferedImage.getHeight(); |
| | | staticFieldValue = new PictureRenderData(width, height, ".png", in); |
| | | if (width > 900 ) { |
| | | height = (height * 900) / width; |
| | | staticFieldValue = new PictureRenderData(900, height, ".png", in); |
| | | } else { |
| | | staticFieldValue = new PictureRenderData(width, height, ".png", in); |
| | | } |
| | | /*staticFieldValue = new PictureRenderData(80, 100, "d://" + valStr);*/ |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } else { |
| | | staticFieldValue = new PictureRenderData(100, 30, localPath+"template/noSign.png"); |
| | | staticFieldValue = new PictureRenderData(100, 30, localPath + "template/noSign.png"); |
| | | } |
| | | } |
| | | } |