BufferedImage bi = new BufferedImage( 100 ,100 , BufferedImage.TYPE_INT_ARGB); Graphics2D g = bi.createGraphics(); ImageIcon ur = new ImageIcon(getClass().getResource("/images/UR.png")); ImageIcon ul = new ImageIcon(getClass().getResource("/images/UL.png")); ImageIcon dr = new ImageIcon(getClass().getResource("/images/DR.png")); ImageIcon dl = new ImageIcon(getClass().getResource("/images/DL.png")); g.drawImage(ur.getImage(), 0, 0, this); g.drawImage(ul.getImage(), k/2,0,this); g.drawImage(dr.getImage(), 0,k/2 ,this); g.drawImage(dl.getImage(), k/2,k/2 ,this); g.drawImage(ul.getImage(), x, y, this); imageicon ret = new ImageIcon(bi);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)