连接多张图片比我的代码更快吗?
BufferedImage bufferedImage = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2 = bufferedImage.createGraphics();
Image image1 = (new ImageIcon(mypath1).getImage();
Image image2 = (new ImageIcon(mypath2).getImage();
Image image3 = (new ImageIcon(mypath3).getImage();
Image image4 = (new ImageIcon(mypath4).getImage();
g2.drawImage(image4, 0, 0, 32, 32, null);
g2.drawImage(image3, 0, 32, 32, 32, null);
g2.drawImage(image2, 32, 0, 32, 32, null);
g2.drawImage(image1, 32, 32, 32, 32, null);
m_placeableIcon = new ImageIcon(bufferedImage);
我想将我的位图分开存储但在JPanel中我希望有一个实心的位图/图像。