package com.test;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import javax.imageio.ImageIO;
public class CreateImage {
private static Font mFont = new Font("宋体", Font.PLAIN, 12);
public static void main(String[] args){
double[] value = {0.57d,1.25d,0.83d,1.38d,2.35d};
createimage(value,2.35d);
}
private static void createimage(double[] value,double maxvalue){
try{
int ranwidth = 33,ranheight = 112;
int width = 764, height = 168;
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
g.setColor(new Color(255, 255,255));
<