Class AbstractPdfShadingMeshWithFlags

    • Constructor Detail

      • AbstractPdfShadingMeshWithFlags

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

        protected AbstractPdfShadingMeshWithFlags​(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

      • getBitsPerFlag

        public int getBitsPerFlag()
        Gets the number of bits used to represent the edge flag for each vertex. But only the least significant 2 bits in each flag value shall be used. The valid flag values are 0, 1, 2 or 3.
        Returns:
        the number of bits. Can be 2, 4 or 8
      • setBitsPerFlag

        public final void setBitsPerFlag​(int bitsPerFlag)
        Sets the number of bits used to represent the edge flag for each vertex. But only the least significant 2 bits in each flag value shall be used. The valid flag values are 0, 1, 2 or 3.
        Parameters:
        bitsPerFlag - the number of bits to be set. Shall be 2, 4 or 8