@@ -0,0 +1,975 @@
+package com.deepoove.poi.tl.util;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Graphics2D;%0Aimport java.awt.image.BufferedImage;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport javax.imageio.ImageIO;%0A%0Apublic class BufferedImageTest %7B%0A%0A    public void testGenAttachmentImage() throws IOException %7B%0A        String name = %22shencanggongyuming.docx%22;%0A//        String name = %22%E6%B7%B1%E8%97%8F%E5%8A%9F%E4%B8%8E%E5%90%8D.docx%22;%0A        BufferedImage image = new BufferedImage(64 + 10 * name.length(), 64, BufferedImage.TYPE_3BYTE_BGR);%0A        Graphics2D g = image.createGraphics();%0A%0A        g.setColor(Color.WHITE);%0A        g.fillRect(0, 0, 64 + 10 * name.length(), 64);%0A%0A        BufferedImage read = ImageIO.read(new File(%22src/test/resources/xlsx.png%22));%0A        g.drawImage(read, 0, 0, 64, 64, null);%0A%0A        g.setColor(Color.BLACK);%0A        g.drawString(name, 64 + 4, 32 + 4);%0A%0A        g.dispose();%0A%0A        File outputfile = new File(%22out_image.png%22);%0A        ImageIO.write(image, %22png%22, outputfile);%0A    %7D%0A%0A%7D%0A

Test Gen Image