Class AbstractPdfShadingMesh

    • Constructor Detail

      • AbstractPdfShadingMesh

        protected AbstractPdfShadingMesh​(PdfDictionary pdfObject)
        Constructor for PdfShadingBlend object using a PdfDictionary.
        Parameters:
        pdfObject - input PdfDictionary
      • AbstractPdfShadingMesh

        protected AbstractPdfShadingMesh​(PdfDictionary pdfObject,
                                         int type,
                                         PdfColorSpace colorSpace)
        Constructor for PdfShadingBlend object using a PdfDictionary, shading type and color space.
        Parameters:
        pdfObject - input PdfDictionary
        type - shading type
        colorSpace - color space
    • Method Detail

      • getBitsPerCoordinate

        public int getBitsPerCoordinate()
        Gets the number of bits used to represent each vertex coordinate.
        Returns:
        the number of bits. Can be 1, 2, 4, 8, 12, 16, 24, or 32
      • setBitsPerCoordinate

        public final void setBitsPerCoordinate​(int bitsPerCoordinate)
        Sets the number of bits used to represent each vertex coordinate.
        Parameters:
        bitsPerCoordinate - the number of bits to be set. Shall be 1, 2, 4, 8, 12, 16, 24, or 32
      • getBitsPerComponent

        public int getBitsPerComponent()
        Gets the number of bits used to represent each colour component.
        Returns:
        the number of bits. Can be 1, 2, 4, 8, 12, or 16
      • setBitsPerComponent

        public final void setBitsPerComponent​(int bitsPerComponent)
        Sets the number of bits used to represent each colour component.
        Parameters:
        bitsPerComponent - the number of bits to be set. Shall be 1, 2, 4, 8, 12, or 16
      • getDecode

        public PdfArray getDecode()
        Gets the PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. The ranges shall be specified as follows: [x_min x_max y_min y_max c1_min c1_max … cn_min cn_max]. Only one pair of color values shall be specified if a Function entry is present.
        Returns:
        the PdfArray Decode object
      • setDecode

        public final void setDecode​(float[] decode)
        Sets the float[] of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. The ranges shall be specified as follows: [x_min x_max y_min y_max c1_min c1_max … cn_min cn_max]. Only one pair of color values shall be specified if a Function entry is present.
        Parameters:
        decode - the float[] of Decode object to set
      • setDecode

        public final void setDecode​(PdfArray decode)
        Sets the PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. The ranges shall be specified as follows: [x_min x_max y_min y_max c1_min c1_max … cn_min cn_max]. Only one pair of color values shall be specified if a Function entry is present.
        Parameters:
        decode - the PdfArray Decode object to set