ig.fillRoundRect ( shadeWidth, shadeWidth, width - shadeWidth * 2, width - shadeWidth * 2, round * 2, round * 2 );
ig.dispose ();
// Creating shade image
final ShadowFilter sf = new ShadowFilter ( shadeWidth, 0, 0, shadeOpacity );
final BufferedImage shade = sf.filter ( bi, null );
// Clipping shade image
final Graphics2D g2d = shade.createGraphics ();
GraphicsUtils.setupAntialias ( g2d );
g2d.setComposite ( AlphaComposite.getInstance ( AlphaComposite.SRC_IN ) );