code: public static BufferedImage applyClippingPath(final Shape clip, final BufferedImage image) {
          return applyClippingPath(clip, notNull(image, "image"), new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB));
      }
docs: Applies the clipping path to the given image.
  All pixels outside the path will be transparent.
  
  @param clip the clipping path, not {@code null}
  @param image the image to clip, not {@code null}
  @return the clipped image.
  
  @throws java.lang.IllegalArgumentException if {@code clip} or {@code image} is {@code null}.