abstract class PDTriangleBasedShadingType extends PDShading
Modifier and Type | Field and Description |
---|---|
private COSArray |
decode |
SHADING_TYPE1, SHADING_TYPE2, SHADING_TYPE3, SHADING_TYPE4, SHADING_TYPE5, SHADING_TYPE6, SHADING_TYPE7
Constructor and Description |
---|
PDTriangleBasedShadingType(COSDictionary shadingDictionary) |
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerComponent()
The bits per component of this shading.
|
int |
getBitsPerCoordinate()
The bits per coordinate of this shading.
|
PDRange |
getDecodeForParameter(int paramNum)
Get the decode for the input parameter.
|
private COSArray |
getDecodeValues()
Returns all decode values as COSArray.
|
void |
setBitsPerComponent(int bitsPerComponent)
Set the number of bits per component.
|
void |
setBitsPerCoordinate(int bitsPerComponent)
Set the number of bits per coordinate.
|
void |
setDecodeValues(COSArray decodeValues)
This will set the decode values.
|
create, evalFunction, evalFunction, getAntiAlias, getBackground, getBBox, getColorSpace, getCOSObject, getFunction, getShadingType, getType, setAntiAlias, setBackground, setBBox, setColorSpace, setFunction, setFunction, setShadingType, toPaint
private COSArray decode
PDTriangleBasedShadingType(COSDictionary shadingDictionary)
public int getBitsPerComponent()
public void setBitsPerComponent(int bitsPerComponent)
bitsPerComponent
- the number of bits per componentpublic int getBitsPerCoordinate()
public void setBitsPerCoordinate(int bitsPerComponent)
bitsPerComponent
- the number of bits per coordinateprivate COSArray getDecodeValues()
public void setDecodeValues(COSArray decodeValues)
decodeValues
- the new decode valuespublic PDRange getDecodeForParameter(int paramNum)
paramNum
- the function parameter number