Class PDGamma
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.color.PDGamma
- All Implemented Interfaces:
COSObjectable
A gamma array, or collection of three floating point parameters used for
color operations.
- Version:
- $Revision: 1.2 $
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getB()
This will get the b value of the tristimulus.Convert this standard java object to a COS object.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.
-
Constructor Details
-
PDGamma
public PDGamma()Constructor. Defaults all values to 0, 0, 0. -
PDGamma
Constructor from COS object.- Parameters:
array
- The array containing the XYZ values.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getCOSArray
Convert this standard java object to a COS object.- Returns:
- The cos object that matches this Java object.
-
getR
public float getR()This will get the r value of the tristimulus.- Returns:
- The R value.
-
setR
public void setR(float r) This will set the r value of the tristimulus.- Parameters:
r
- The r value for the tristimulus.
-
getG
public float getG()This will get the g value of the tristimulus.- Returns:
- The g value.
-
setG
public void setG(float g) This will set the g value of the tristimulus.- Parameters:
g
- The g value for the tristimulus.
-
getB
public float getB()This will get the b value of the tristimulus.- Returns:
- The B value.
-
setB
public void setB(float b) This will set the b value of the tristimulus.- Parameters:
b
- The b value for the tristimulus.
-