public abstract class AbstractPdfShadingMesh extends AbstractPdfShading
AbstractPdfShading and represents shadings which are based on a mesh,
with BitsPerCoordinate, BitsPerComponent and Decode fields in the PDF object.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPdfShadingMesh(PdfDictionary pdfObject)
Constructor for PdfShadingBlend object using a PdfDictionary.
|
protected |
AbstractPdfShadingMesh(PdfDictionary pdfObject,
int type,
PdfColorSpace colorSpace)
Constructor for PdfShadingBlend object using a PdfDictionary, shading type and color space.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsPerComponent()
Gets the number of bits used to represent each colour component.
|
int |
getBitsPerCoordinate()
Gets the number of bits used to represent each vertex coordinate.
|
PdfArray |
getDecode()
Gets the
PdfArray of numbers specifying how to map vertex coordinates and colour components
into the appropriate ranges of values. |
void |
setBitsPerComponent(int bitsPerComponent)
Sets the number of bits used to represent each colour component.
|
void |
setBitsPerCoordinate(int bitsPerCoordinate)
Sets the number of bits used to represent each vertex coordinate.
|
void |
setDecode(float[] decode)
Sets the
float[] of numbers specifying how to map vertex coordinates and colour components
into the appropriate ranges of values. |
void |
setDecode(PdfArray decode)
Sets the
PdfArray of numbers specifying how to map vertex coordinates and colour components
into the appropriate ranges of values. |
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunctionensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleaseprotected AbstractPdfShadingMesh(PdfDictionary pdfObject)
pdfObject - input PdfDictionaryprotected AbstractPdfShadingMesh(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace)
pdfObject - input PdfDictionarytype - shading typecolorSpace - color spacepublic int getBitsPerCoordinate()
public final void setBitsPerCoordinate(int bitsPerCoordinate)
bitsPerCoordinate - the number of bits to be set. Shall be 1, 2, 4, 8, 12, 16, 24, or 32public int getBitsPerComponent()
public final void setBitsPerComponent(int bitsPerComponent)
bitsPerComponent - the number of bits to be set. Shall be 1, 2, 4, 8, 12, or 16public PdfArray getDecode()
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.PdfArray Decode objectpublic final void setDecode(float[] decode)
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 setpublic final void setDecode(PdfArray decode)
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 PdfArray Decode object to setCopyright © 1998–2024 Apryse Group NV. All rights reserved.