Class AbstractPdfShadingMeshWithFlags

Direct Known Subclasses:
PdfCoonsPatchShading, PdfFreeFormGouraudShadedTriangleShading, PdfTensorProductPatchShading

public abstract class AbstractPdfShadingMeshWithFlags extends AbstractPdfShadingMesh
The PdfShadingMeshFlags class which extends AbstractPdfShading and AbstractPdfShadingMesh and represents shadings which are based on a mesh, with all fields from AbstractPdfShadingMesh as well as BitsPerFlag in the PDF object.
  • Constructor Details

    • 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 Details

    • 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