org.pdfbox.pdmodel.graphics.color
Class PDGamma
java.lang.Object
org.pdfbox.pdmodel.graphics.color.PDGamma
- COSObjectable
public class PDGamma
extends java.lang.Object
A gamma array, or collection of three floating point parameters used for
color operations.
float | getB() - This will get the b value of the tristimulus.
|
COSArray | getCOSArray() - Convert this standard java object to a COS object.
|
COSBase | getCOSObject() - Convert this standard java object to a COS object.
|
float | getG() - This will get the g value of the tristimulus.
|
float | getR() - This will get the r value of the tristimulus.
|
void | setB(float b) - This will set the b value of the tristimulus.
|
void | setG(float g) - This will set the g value of the tristimulus.
|
void | setR(float r) - This will set the r value of the tristimulus.
|
PDGamma
public PDGamma()
Constructor. Defaults all values to 0, 0, 0.
PDGamma
public PDGamma(COSArray array)
Constructor from COS object.
array
- The array containing the XYZ values.
getB
public float getB()
This will get the b value of the tristimulus.
getCOSArray
public COSArray getCOSArray()
Convert this standard java object to a COS object.
- The cos object that matches this Java object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getG
public float getG()
This will get the g value of the tristimulus.
getR
public float getR()
This will get the r value of the tristimulus.
setB
public void setB(float b)
This will set the b value of the tristimulus.
b
- The b value for the tristimulus.
setG
public void setG(float g)
This will set the g value of the tristimulus.
g
- The g value for the tristimulus.
setR
public void setR(float r)
This will set the r value of the tristimulus.
r
- The r value for the tristimulus.