public class PdfAxialShading extends AbstractPdfShadingBlend
AbstractPdfShading and AbstractPdfShadingBlend classes
and is in charge of Shading Dictionary with axial type, that define a colour blend that varies along
a linear axis between two endpoints and extends indefinitely perpendicular to that axis.| Constructor and Description |
|---|
PdfAxialShading(PdfColorSpace cs,
float x0,
float y0,
float[] color0,
float x1,
float y1,
float[] color1)
Creates the new instance of the class.
|
PdfAxialShading(PdfColorSpace cs,
float x0,
float y0,
float[] color0,
float x1,
float y1,
float[] color1,
boolean[] extend)
Creates the new instance of the class.
|
PdfAxialShading(PdfColorSpace cs,
PdfArray coords,
IPdfFunction function)
Creates the new instance of the class.
|
PdfAxialShading(PdfColorSpace cs,
PdfArray coords,
PdfArray domain,
IPdfFunction function)
Creates the new instance of the class.
|
PdfAxialShading(PdfDictionary pdfDictionary)
Creates the new instance of the class from the existing
PdfDictionary. |
| Modifier and Type | Method and Description |
|---|---|
void |
setCoords(float x0,
float y0,
float x1,
float y1)
Sets the Choords object with the four params expressed in the shading's target coordinate space.
|
getCoords, getDomain, getExtend, setCoords, setDomain, setDomain, setExtend, setExtendflush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunctionensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfAxialShading(PdfDictionary pdfDictionary)
PdfDictionary.pdfDictionary - from which this PdfAxialShading will be createdpublic PdfAxialShading(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1)
cs - the PdfColorSpace object in which colour values shall be expressed.
The special Pattern space isn't exceptedx0 - the start coordinate of X axis expressed in the shading's target coordinate spacey0 - the start coordinate of Y axis expressed in the shading's target coordinate spacecolor0 - the float[] that represents the color in the start pointx1 - the end coordinate of X axis expressed in the shading's target coordinate spacey1 - the end coordinate of Y axis expressed in the shading's target coordinate spacecolor1 - the float[] that represents the color in the end pointpublic PdfAxialShading(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1, boolean[] extend)
cs - the PdfColorSpace object in which colour values shall be expressed.
The special Pattern space isn't exceptedx0 - the start coordinate of X axis expressed in the shading's target coordinate spacey0 - the start coordinate of Y axis expressed in the shading's target coordinate spacecolor0 - the float[] that represents the color in the start pointx1 - the end coordinate of X axis expressed in the shading's target coordinate spacey1 - the end coordinate of Y axis expressed in the shading's target coordinate spacecolor1 - the float[] that represents the color in the end pointextend - the array of two booleans that specified whether to extend the shading
beyond the starting and ending points of the axis, respectivelypublic PdfAxialShading(PdfColorSpace cs, PdfArray coords, IPdfFunction function)
cs - the PdfColorSpace object in which colour values shall be expressed.
The special Pattern space isn't exceptedcoords - the PdfArray of four numbers [x0 y0 x1 y1] that specified the starting
and the endings coordinates of thew axis, expressed in the shading's target coordinate spacefunction - the IPdfFunction object, that is used to calculate color transitionspublic PdfAxialShading(PdfColorSpace cs, PdfArray coords, PdfArray domain, IPdfFunction function)
cs - the PdfColorSpace object in which colour values shall be expressed.
The special Pattern space isn't exceptedcoords - the PdfArray of four numbers [x0 y0 x1 y1] that specified
the starting and the endings coordinates of thew axis, expressed
in the shading's target coordinate spacedomain - the PdfArray of two numbers [t0 t1] specifying the limiting values
of a parametric variable t which is considered to vary linearly between
these two values and becomes the input argument to the colour functionfunction - the IPdfFunction object, that is used to calculate color transitionspublic final void setCoords(float x0,
float y0,
float x1,
float y1)
x0 - the start coordinate of X axis to be sety0 - the start coordinate of Y axis to be setx1 - the end coordinate of X axis to be sety1 - the end coordinate of Y axis to be setCopyright © 1998–2024 Apryse Group NV. All rights reserved.