public static class PdfShading.FunctionBased extends PdfShading
PdfShading class and is in charge of Shading Dictionary with function-based type, that defines color at every point in the domain by a specified mathematical function.
PdfShading.Axial, PdfShading.CoonsPatchMesh, PdfShading.FreeFormGouraudShadedTriangleMesh, PdfShading.FunctionBased, PdfShading.LatticeFormGouraudShadedTriangleMesh, PdfShading.Radial, PdfShading.TensorProductPatchMesh| Constructor and Description |
|---|
FunctionBased(PdfColorSpace colorSpace, PdfFunction function)
Creates the new instance of the class.
|
FunctionBased(PdfDictionary pdfDictionary)
Deprecated.
Intended only for private use. You should use
PdfShading.makeShading(PdfDictionary) instead.
|
FunctionBased(PdfObject colorSpace, PdfFunction function)
Creates the new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
PdfArray |
getDomain()
Gets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
|
float[] |
getMatrix()
Gets the array of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.
|
void |
setDomain(float xmin, float xmax, float ymin, float ymax)
Sets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
|
void |
setDomain(PdfArray domain)
Sets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
|
void |
setMatrix(float[] matrix)
Sets the array of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.
|
void |
setMatrix(PdfArray matrix)
Sets the array of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.
|
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunctionensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease@Deprecated public FunctionBased(PdfDictionary pdfDictionary)
PdfShading.makeShading(PdfDictionary) instead.
PdfDictionary object.
pdfDictionary - PdfDictionary from which the instance is created.
public FunctionBased(PdfColorSpace colorSpace, PdfFunction function)
colorSpace - the PdfColorSpace object in which colour values shall be expressed.
function - the PdfFunction, that is used to calculate color transitions.
public FunctionBased(PdfObject colorSpace, PdfFunction function)
colorSpace - the PdfObject, that represents color space in which colour values shall be expressed.
function - the PdfFunction, that is used to calculate color transitions.
public PdfArray getDomain()
PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
PdfArray domain rectangle.
public void setDomain(float xmin,
float xmax,
float ymin,
float ymax)
PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
xmin - the Xmin coordinate of rectangle.
xmax - the Xmax coordinate of rectangle.
ymin - the Ymin coordinate of rectangle.
ymax - the Ymax coordinate of rectangle.
public void setDomain(PdfArray domain)
PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.
domain - the PdfArray domain rectangle object to be set.
public float[] getMatrix()
float[] of transformation matrix (identical matrix by default).
public void setMatrix(float[] matrix)
matrix - the float[] of transformation matrix to be set.
Copyright © 1998–2017 iText Group NV. All rights reserved.