iText 8.0.5 API
|
The class that extends PdfShading class and is in charge of Shading Dictionary with Coons Patch mesh type. More...
Public Member Functions |
|
CoonsPatchMesh (PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, float[] decode) | |
Creates the new instance of the class. More... |
|
CoonsPatchMesh (PdfColorSpace cs, int bitsPerCoordinate, int bitsPerComponent, int bitsPerFlag, PdfArray decode) | |
Creates the new instance of the class. More... |
|
virtual int | GetBitsPerCoordinate () |
Gets the number of bits used to represent each vertex coordinate. More... |
|
virtual void | SetBitsPerCoordinate (int bitsPerCoordinate) |
Sets the number of bits used to represent each vertex coordinate. More... |
|
virtual int | GetBitsPerComponent () |
Gets the number of bits used to represent each colour component. More... |
|
virtual void | SetBitsPerComponent (int bitsPerComponent) |
Sets the number of bits used to represent each colour component. More... |
|
virtual int | GetBitsPerFlag () |
Gets the number of bits used to represent the edge flag for each vertex. More... |
|
virtual void | SetBitsPerFlag (int bitsPerFlag) |
Sets the number of bits used to represent the edge flag for each vertex. More... |
|
virtual PdfArray | GetDecode () |
Gets the iText.Kernel.Pdf.PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. More... |
|
virtual void | SetDecode (float[] decode) |
Sets the float[] of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. More... |
|
virtual void | SetDecode (PdfArray decode) |
Sets the iText.Kernel.Pdf.PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values. More... |
|
Public Member Functions inherited from iText.Kernel.Pdf.Colorspace.PdfShading | |
virtual int | GetShadingType () |
Gets the shading type. More... |
|
virtual PdfObject | GetColorSpace () |
Gets the color space in which colour values shall be expressed. More... |
|
virtual PdfObject | GetFunction () |
Gets the function PdfObject that represents color transitions across the shading geometry. More... |
|
virtual void | SetFunction (IPdfFunction function) |
Sets the function that represents color transitions across the shading geometry as one object. More... |
|
virtual void | SetFunction (IPdfFunction[] functions) |
Sets the function object that represents color transitions across the shading geometry as an array of functions. More... |
|
override void | Flush () |
To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference. More... |
|
Public Member Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
virtual T | GetPdfObject () |
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document, PdfIndirectReference reference) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | SetModified () |
virtual bool | IsFlushed () |
Package Functions |
|
CoonsPatchMesh (PdfStream pdfStream) | |
Creates the new instance of the class from the existing iText.Kernel.Pdf.PdfStream. More... |
|
Package Functions inherited from iText.Kernel.Pdf.Colorspace.PdfShading | |
PdfShading (PdfDictionary pdfObject) | |
Creates the PdfShading object from the existing iText.Kernel.Pdf.PdfDictionary. More... |
|
PdfShading (PdfDictionary pdfObject, int type, PdfColorSpace colorSpace) | |
Creates the PdfShading object from the existing iText.Kernel.Pdf.PdfDictionary , using provided type and colorspace. More... |
|
override bool | IsWrappedObjectMustBeIndirect () |
Defines if the object behind this wrapper must be an indirect object in the resultant document. More... |
|
Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
PdfObjectWrapper (T pdfObject) | |
virtual void | SetPdfObject (T pdfObject) |
virtual void | SetForbidRelease () |
virtual void | UnsetForbidRelease () |
virtual void | EnsureUnderlyingObjectHasIndirectReference () |
Additional Inherited Members |
|
Static Public Member Functions inherited from iText.Kernel.Pdf.Colorspace.PdfShading | |
static PdfShading | MakeShading (PdfDictionary shadingDictionary) |
Creates the PdfShading object from the existing iText.Kernel.Pdf.PdfDictionary with corresponding type. More... |
|
Static Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
static void | MarkObjectAsIndirect (PdfObject pdfObject) |
static void | EnsureObjectIsAddedToDocument (PdfObject @object) |
Some wrappers use object's indirect reference to obtain the PdfDocument to which the object belongs to. More... |
|
The class that extends PdfShading class and is in charge of Shading Dictionary with Coons Patch mesh type.
The class that extends PdfShading class and is in charge of Shading Dictionary with Coons Patch mesh type. This type of shading is constructed from one or more colour patches, each bounded by four cubic Bézier curves. Degenerate Bézier curves are allowed and are useful for certain graphical effects. At least one complete patch shall be specified. The shape of patch is defined by 12 control points. Colours are specified for each corner of the unit square, and bilinear interpolation is used to fill in colours over the entire unit square. Coordinates are mapped from the unit square into a four-sided patch whose sides are not necessarily linear. The mapping is continuous: the corners of the unit square map to corners of the patch and the sides of the unit square map to sides of the patch. For the format of data stream, that defines patches (see ISO-320001 Table 85). If the shading dictionary contains a Function entry, the colour data for each corner of a patch shall be specified by a single parametric value t rather than by n separate colour components c1...cn.
|
inlinepackage |
Creates the new instance of the class from the existing iText.Kernel.Pdf.PdfStream.
pdfStream | from which this CoonsPatchMesh will be created |
|
inline |
Creates the new instance of the class.
cs | the PdfColorSpace object in which colour values shall be expressed. The special Pattern space isn't excepted. |
bitsPerCoordinate | the number of bits used to represent each vertex coordinate. The value shall be 1, 2, 4, 8, 12, 16, 24, or 32. |
bitsPerComponent | the number of bits used to represent each colour component. The value shall be 1, 2, 4, 8, 12, or 16. |
bitsPerFlag | 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 3. |
decode | the int[] 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. |
|
inline |
Creates the new instance of the class.
cs | the PdfColorSpace object in which colour values shall be expressed. The special Pattern space isn't excepted. |
bitsPerCoordinate | the number of bits used to represent each vertex coordinate. The value shall be 1, 2, 4, 8, 12, 16, 24, or 32. |
bitsPerComponent | the number of bits used to represent each colour component. The value shall be 1, 2, 4, 8, 12, or 16. |
bitsPerFlag | 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 3. |
decode | the iText.Kernel.Pdf.PdfArray 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. |
|
inlinevirtual |
Gets the number of bits used to represent each colour component.
|
inlinevirtual |
Gets the number of bits used to represent each vertex coordinate.
|
inlinevirtual |
Gets the number of bits used to represent the edge flag for each vertex.
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.
|
inlinevirtual |
Gets the iText.Kernel.Pdf.PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values.
Gets the iText.Kernel.Pdf.PdfArray 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.
|
inlinevirtual |
Sets the number of bits used to represent each colour component.
bitsPerComponent | the number of bits to be set. Shall be 1, 2, 4, 8, 12, or 16. |
|
inlinevirtual |
Sets the number of bits used to represent each vertex coordinate.
bitsPerCoordinate | the number of bits to be set. Shall be 1, 2, 4, 8, 12, 16, 24, or 32. |
|
inlinevirtual |
Sets the number of bits used to represent the edge flag for each vertex.
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.
bitsPerFlag | the number of bits to be set. Shall be 2, 4 or 8. |
|
inlinevirtual |
Sets the float[]
of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values.
Sets the float[]
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.
decode | the float[] of Decode object to set. |
|
inlinevirtual |
Sets the iText.Kernel.Pdf.PdfArray of numbers specifying how to map vertex coordinates and colour components into the appropriate ranges of values.
Sets the iText.Kernel.Pdf.PdfArray 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.
decode | the iText.Kernel.Pdf.PdfArray Decode object to set. |