Home > Back-end >  About on Linux server use BufferedImage. GetGraphics () the Graphics object is null, seeks to solve
About on Linux server use BufferedImage. GetGraphics () the Graphics object is null, seeks to solve

Time:11-26

I use BufferedImage on Linux server getGraphics () to get the Graphics object is null, but in local debugging don't have any problem, specific code is as follows:
 BufferedImage image=new BufferedImage (width, height, BufferedImage. TYPE_INT_RGB); 
Graphics g=image. GetGraphics ();

I in Graphics g=image getGraphics (); An exception is thrown, abnormal display null, is this why?

CodePudding user response:

Same q, don't know how to solve the building Lord at that time

CodePudding user response:

I also want to ask, solved
  • Related