Class AbstractPdfShadingMeshWithFlags
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObjectWrapper<PdfDictionary>
-
- com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShading
-
- com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShadingMesh
-
- com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShadingMeshWithFlags
-
- Direct Known Subclasses:
PdfCoonsPatchShading,PdfFreeFormGouraudShadedTriangleShading,PdfTensorProductPatchShading
public abstract class AbstractPdfShadingMeshWithFlags extends AbstractPdfShadingMesh
The PdfShadingMeshFlags class which extendsAbstractPdfShadingandAbstractPdfShadingMeshand represents shadings which are based on a mesh, with all fields fromAbstractPdfShadingMeshas well as BitsPerFlag in the PDF object.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPdfShadingMeshWithFlags(PdfDictionary pdfObject)Constructor for PdfShadingBlend object using a PdfDictionary.protectedAbstractPdfShadingMeshWithFlags(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace)Constructor for PdfShadingBlend object using a PdfDictionary, shading type and color space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitsPerFlag()Gets the number of bits used to represent the edge flag for each vertex.voidsetBitsPerFlag(int bitsPerFlag)Sets the number of bits used to represent the edge flag for each vertex.-
Methods inherited from class com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShadingMesh
getBitsPerComponent, getBitsPerCoordinate, getDecode, setBitsPerComponent, setBitsPerCoordinate, setDecode, setDecode
-
Methods inherited from class com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShading
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunction
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
-
-
-
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 PdfDictionarytype- shading typecolorSpace- 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
-
-