List of utility methods to do BufferedImage Split
void | tileStretchPaint(Graphics g, JComponent comp, BufferedImage img, Insets ins) tile Stretch Paint int left = ins.left; int right = ins.right; int top = ins.top; int bottom = ins.bottom; g.drawImage(img, 0, 0, left, top, 0, 0, left, top, null); g.drawImage(img, left, 0, comp.getWidth() - right, top, left, 0, img.getWidth() - right, top, null); g.drawImage(img, comp.getWidth() - right, 0, comp.getWidth(), top, img.getWidth() - right, 0, img.getWidth(), top, null); ... |