|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources
org.apache.pdfbox.pdmodel.graphics.shading.PDShadingType5
public class PDShadingType5
This represents resources for a shading type 5 (Lattice-Form Gouraud-Shaded Triangle Meshes).
Field Summary |
---|
Fields inherited from class org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources |
---|
SHADING_TYPE1, SHADING_TYPE2, SHADING_TYPE3, SHADING_TYPE4, SHADING_TYPE5, SHADING_TYPE6, SHADING_TYPE7 |
Constructor Summary | |
---|---|
PDShadingType5(COSDictionary shadingDictionary)
Constructor using the given shading dictionary. |
Method Summary | |
---|---|
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. |
PDFunction |
getFunction()
This will return the function used to convert the color values. |
int |
getShadingType()
This will return the shading type. |
int |
getVerticesPerRow()
The vertices per row of this shading. |
void |
setBitsPerComponent(int bpc)
Set the number of bits per component. |
void |
setBitsPerCoordinate(int bpc)
Set the number of bits per coordinate. |
void |
setDecodeValues(COSArray decodeValues)
This will set the decode values. |
void |
setFunction(PDFunction newFunction)
This will set the function for the color conversion. |
void |
setVerticesPerRow(int vpr)
Set the number of vertices per row. |
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources |
---|
create, getAntiAlias, getBackground, getBBox, getColorSpace, getCOSDictionary, getCOSObject, getType, setAntiAlias, setBackground, setBBox, setColorSpace, setShadingType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDShadingType5(COSDictionary shadingDictionary)
shadingDictionary
- The dictionary for this shading.Method Detail |
---|
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 getVerticesPerRow()
public void setVerticesPerRow(int vpr)
vpr
- The number of vertices per row.public void setDecodeValues(COSArray decodeValues)
decodeValues
- The new decode values.public PDRange getDecodeForParameter(int paramNum)
paramNum
- The function parameter number.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |