public class PDShadingType4 extends PDShadingResources
SHADING_TYPE1, SHADING_TYPE2, SHADING_TYPE3, SHADING_TYPE4, SHADING_TYPE5, SHADING_TYPE6, SHADING_TYPE7
Constructor and Description |
---|
PDShadingType4(COSDictionary shadingDictionary)
Constructor using the given shading dictionary.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerComponent()
The bits per component of this shading.
|
int |
getBitsPerCoordinate()
The bits per coordinate of this shading.
|
int |
getBitsPerFlag()
The bits per flag of this shading.
|
PDRange |
getDecodeForParameter(int paramNum)
Get the decode for the input parameter.
|
PDFunction |
getFunction()
This will return the function used to convert the color values.
|
int |
getShadingType()
This will return the shading type.
|
void |
setBitsPerComponent(int bpc)
Set the number of bits per component.
|
void |
setBitsPerCoordinate(int bpc)
Set the number of bits per coordinate.
|
void |
setBitsPerFlag(int bpf)
Set the number of bits per flag.
|
void |
setDecodeValues(COSArray decodeValues)
This will set the decode values.
|
void |
setFunction(PDFunction newFunction)
This will set the function for the color conversion.
|
create, getAntiAlias, getBackground, getBBox, getColorSpace, getCOSDictionary, getCOSObject, getType, setAntiAlias, setBackground, setBBox, setColorSpace, setShadingType
public PDShadingType4(COSDictionary shadingDictionary)
shadingDictionary
- The dictionary for this shading.public int getShadingType()
getShadingType
in class PDShadingResources
public void setFunction(PDFunction newFunction)
newFunction
- The new function.public PDFunction getFunction() throws IOException
IOException
- If we are unable to create the PDFunction object.public int getBitsPerComponent()
public void setBitsPerComponent(int bpc)
bpc
- The number of bits per component.public int getBitsPerCoordinate()
public void setBitsPerCoordinate(int bpc)
bpc
- The number of bits per coordinate.public int getBitsPerFlag()
public void setBitsPerFlag(int bpf)
bpf
- The number of bits per flag.public void setDecodeValues(COSArray decodeValues)
decodeValues
- The new decode values.public PDRange getDecodeForParameter(int paramNum)
paramNum
- The function parameter number.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.