Class PageDrawer.TransparencyGroup

  • Enclosing class:
    PageDrawer

    private final class PageDrawer.TransparencyGroup
    extends java.lang.Object
    Transparency group.
    • Field Detail

      • image

        private final java.awt.image.BufferedImage image
      • minX

        private final int minX
      • minY

        private final int minY
      • maxX

        private final int maxX
      • maxY

        private final int maxY
      • width

        private final int width
      • height

        private final int height
      • scaleX

        private final float scaleX
      • scaleY

        private final float scaleY
    • Constructor Detail

      • TransparencyGroup

        private TransparencyGroup​(PDTransparencyGroup form,
                                  boolean isSoftMask,
                                  Matrix ctm,
                                  PDColor backdropColor)
                           throws java.io.IOException
        Creates a buffered image for a transparency group result.
        Parameters:
        form - the transparency group of the form or soft mask.
        isSoftMask - true if this is a soft mask.
        ctm - the relevant current transformation matrix. For soft masks, this is the CTM at the time the soft mask is set (not at the time the soft mask is used for fill/stroke!), for forms, this is the CTM at the time the form is invoked.
        backdropColor - the color according to the /bc entry to be used for luminosity soft masks.
        Throws:
        java.io.IOException
    • Method Detail

      • create2ByteGrayAlphaImage

        private java.awt.image.BufferedImage create2ByteGrayAlphaImage​(int width,
                                                                       int height)
      • isGray

        private boolean isGray​(PDColorSpace colorSpace)
      • getImage

        public java.awt.image.BufferedImage getImage()
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()