Class SoftMask

java.lang.Object
org.apache.pdfbox.rendering.SoftMask
All Implemented Interfaces:
Paint, Transparency

class SoftMask extends Object implements Paint
A Paint which applies a soft mask to an underlying Paint.
  • Field Details

    • ARGB_COLOR_MODEL

      private static final ColorModel ARGB_COLOR_MODEL
    • paint

      private final Paint paint
    • mask

      private final BufferedImage mask
    • bboxDevice

      private final Rectangle2D bboxDevice
    • bc

      private int bc
    • transferFunction

      private final PDFunction transferFunction
  • Constructor Details

    • SoftMask

      SoftMask(Paint paint, BufferedImage mask, Rectangle2D bboxDevice, PDColor backdropColor, PDFunction transferFunction)
      Creates a new soft mask paint.
      Parameters:
      paint - underlying paint.
      mask - soft mask
      bboxDevice - bbox of the soft mask in the underlying Graphics2D device space
      backdropColor - the color to be used outside the transparency group’s bounding box; if null, black will be used.
      transferFunction - the transfer function, may be null.
  • Method Details