/**
* 生成图片
*
* @return
* @throws Exception
*/
public static String graphicsGeneration() throws Exception {
// 实际数据行数+标题+备注
int imageWidth = 490;
int imageHeight = 130;
BufferedImage image = new BufferedImage(imageWidth, imageHeight,BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = (Graphics2D) image.getGraphics();
g2d.setColor(Color.WHITE);
g2d.fillRect(0, 0, imageWidth, imageHeight);
// ---------- 增加下面的代码使得背景透明 -----------------
// image =
// g2d.getDeviceConfiguration().createCompatibleImage(imageWidth,
// imageHeight, Transparency.TRANSLUCENT);
// g2d.dispose();
// g2d = image.createGraphics();
// ---------- 背景透明代码结束 -----------------
g2d.setColor(new Color(22