示例#1
0
    SlicedShadowBorder(
        final Painter prePainter,
        final Painter postPainter,
        final int offsetX,
        final int offsetY,
        final float distance,
        final float intensity,
        final int blur,
        final int templateWidth,
        final int templateHeight,
        final int leftCut,
        final int topCut,
        final int rightCut,
        final int bottomCut) {
      super(prePainter, postPainter, offsetX, offsetY, distance, intensity, blur);

      final BufferedImage i =
          new BufferedImage(templateWidth, templateHeight, BufferedImage.TYPE_INT_ARGB_PRE);
      super.paintBorder(null, i.getGraphics(), 0, 0, templateWidth, templateHeight);
      //            debugFrame("slices", i);
      slices = new SlicedImageControl(i, leftCut, topCut, rightCut, bottomCut, false);
    }