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
Modifier | Constructor and Description |
---|---|
|
FunctionBased(PdfColorSpace colorSpace, PdfFunction function)
Creates the new instance of the class.
|
protected |
FunctionBased(PdfDictionary pdfDictionary) |
|
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.
|
PdfArray |
getMatrix()
Gets the PdfArray 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, setFunction
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
protected FunctionBased(PdfDictionary pdfDictionary)
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 PdfArray getMatrix()
PdfArray
of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.
PdfArray
of transformation matrix (identical matrix by default).
public void setMatrix(float[] matrix)
matrix
- the float[]
of transformation matrix to be set.
Copyright © 1998–2018 iText Group NV. All rights reserved.