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
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 Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPdfShadingMeshWithFlags
(PdfDictionary pdfObject) Constructor for PdfShadingBlend object using a PdfDictionary.protected
AbstractPdfShadingMeshWithFlags
(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace) Constructor for PdfShadingBlend object using a PdfDictionary, shading type and color space. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of bits used to represent the edge flag for each vertex.final void
setBitsPerFlag
(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 Details
-
AbstractPdfShadingMeshWithFlags
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 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
-