Class PdfTensorProductPatchShading
- 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
-
- com.itextpdf.kernel.pdf.colorspace.shading.PdfTensorProductPatchShading
-
public class PdfTensorProductPatchShading extends AbstractPdfShadingMeshWithFlags
The class that extendsAbstractPdfShading
,AbstractPdfShadingMesh
andAbstractPdfShadingMeshWithFlags
classes and is in charge of Shading Dictionary with Tensor-Product Patch mesh type.This type of shading is identical to
PdfCoonsPatchShading
, except that it's based on a bicubic tensor-product patch defined by 16 control points.For the format of data stream, that defines patches, see ISO-320001 Table 86.
-
-
Constructor Summary
Constructors Constructor Description PdfTensorProductPatchShading(PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, float[] decode)
Creates the new instance of the class.PdfTensorProductPatchShading(PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, PdfArray decode)
Creates the new instance of the class.PdfTensorProductPatchShading(PdfStream pdfStream)
Creates the new instance of the class from the existingPdfStream
.
-
Method Summary
-
Methods inherited from class com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShadingMeshWithFlags
getBitsPerFlag, setBitsPerFlag
-
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
-
PdfTensorProductPatchShading
public PdfTensorProductPatchShading(PdfStream pdfStream)
Creates the new instance of the class from the existingPdfStream
.- Parameters:
pdfStream
- from which thisPdfTensorProductPatchShading
will be created
-
PdfTensorProductPatchShading
public PdfTensorProductPatchShading(PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, float[] decode)
Creates the new instance of the class.- Parameters:
cs
- thePdfColorSpace
object in which colour values shall be expressed. The special Pattern space isn't exceptedbitsPerCoordinate
- the number of bits used to represent each vertex coordinate. The value shall be 1, 2, 4, 8, 12, 16, 24, or 32bitsPerComponent
- the number of bits used to represent each colour component. The value shall be 1, 2, 4, 8, 12, or 16bitsPerFlag
- the number of bits used to represent the edge flag for each vertex. The value of BitsPerFlag shall be 2, 4, or 8, but only the least significant 2 bits in each flag value shall be used. The value for the edge flag shall be 0, 1, 2 or 3decode
- theint[]
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
-
PdfTensorProductPatchShading
public PdfTensorProductPatchShading(PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, PdfArray decode)
Creates the new instance of the class.- Parameters:
cs
- thePdfColorSpace
object in which colour values shall be expressed. The special Pattern space isn't exceptedbitsPerCoordinate
- the number of bits used to represent each vertex coordinate. The value shall be 1, 2, 4, 8, 12, 16, 24, or 32bitsPerComponent
- the number of bits used to represent each colour component. The value shall be 1, 2, 4, 8, 12, or 16bitsPerFlag
- the number of bits used to represent the edge flag for each vertex. The value of BitsPerFlag shall be 2, 4, or 8, but only the least significant 2 bits in each flag value shall be used. The value for the edge flag shall be 0, 1, 2 or 3decode
- thePdfArray
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
-
-