Graphics2D graphics = originImage.createGraphics();
//设置背景颜色 graphics.setPaint (bgColor);
覆盖背景 graphics.fillRect ( 0, 0, 1039, 479);
Graphics2D画一个自定义背景颜色的背景
原文:https://www.cnblogs.com/xiao1993/p/15183510.html