求救JSP画图,可与html格式同时使用吗?
BufferedImage image = new BufferedImage(X,Y, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
Graphics2D g2d= (Graphics2D)g;
g2d.setBackground(Color.blue);
//底色
g2d.setColor(Color.white);
g2d.fillRect(0,0,image.getWidth(),image.getHeight());
g.setColor(Color.black);
g.drawLine(30,480-30,30,480-440);
g.drawLine(30,480-30,530,480-30);
JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(out1);
encoder.encode(image);
这样是可以画出图来,可是我的问题是,当这个页面还有其它内容时,应该怎么办呢?
比如加些文字链接什么的?!