public class PdfFunctionBasedShading extends AbstractPdfShading
AbstractPdfShading 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.| Constructor and Description |
|---|
PdfFunctionBasedShading(PdfColorSpace colorSpace,
IPdfFunction function)
Creates the new instance of the class.
|
PdfFunctionBasedShading(PdfDictionary pdfDictionary)
Creates the new instance of the class from the existing
PdfDictionary. |
PdfFunctionBasedShading(PdfObject colorSpace,
IPdfFunction 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, setFunctionensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfFunctionBasedShading(PdfDictionary pdfDictionary)
PdfDictionary.pdfDictionary - from which this PdfFunctionBasedShading will be createdpublic PdfFunctionBasedShading(PdfColorSpace colorSpace, IPdfFunction function)
colorSpace - the PdfColorSpace object in which colour values shall be expressedfunction - the IPdfFunction, that is used to calculate color transitionspublic PdfFunctionBasedShading(PdfObject colorSpace, IPdfFunction function)
colorSpace - the PdfObject, that represents color space in which colour values shall be expressedfunction - the IPdfFunction, that is used to calculate color transitionspublic 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 rectanglepublic 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 rectanglexmax - the Xmax coordinate of rectangleymin - the Ymin coordinate of rectangleymax - the Ymax coordinate of rectanglepublic 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 setpublic 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 setCopyright © 1998–2025 Apryse Group NV. All rights reserved.