Package com.itextpdf.io.image
Class PngChromaticities
java.lang.Object
com.itextpdf.io.image.PngChromaticities
Stores the CIE
x/y chromaticities declared by a PNG image.
-
Constructor Summary
ConstructorsConstructorDescriptionPngChromaticities(float xW, float yW, float xR, float yR, float xG, float yG, float xB, float yB) Creates PNG chromaticities for the white point and RGB primaries. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetXB()Gets the blue-primary x chromaticity.floatgetXG()Gets the green-primary x chromaticity.floatgetXR()Gets the red-primary x chromaticity.floatgetXW()Gets the white-point x chromaticity.floatgetYB()Gets the blue-primary y chromaticity.floatgetYG()Gets the green-primary y chromaticity.floatgetYR()Gets the red-primary y chromaticity.floatgetYW()Gets the white-point y chromaticity.
-
Constructor Details
-
PngChromaticities
public PngChromaticities(float xW, float yW, float xR, float yR, float xG, float yG, float xB, float yB) Creates PNG chromaticities for the white point and RGB primaries.- Parameters:
-
xW- white-point x chromaticity -
yW- white-point y chromaticity -
xR- red-primary x chromaticity -
yR- red-primary y chromaticity -
xG- green-primary x chromaticity -
yG- green-primary y chromaticity -
xB- blue-primary x chromaticity -
yB- blue-primary y chromaticity
-
-
Method Details
-
getXW
public float getXW()Gets the white-point x chromaticity.- Returns:
- white-point x chromaticity
-
getYW
public float getYW()Gets the white-point y chromaticity.- Returns:
- white-point y chromaticity
-
getXR
public float getXR()Gets the red-primary x chromaticity.- Returns:
- red-primary x chromaticity
-
getYR
public float getYR()Gets the red-primary y chromaticity.- Returns:
- red-primary y chromaticity
-
getXG
public float getXG()Gets the green-primary x chromaticity.- Returns:
- green-primary x chromaticity
-
getYG
public float getYG()Gets the green-primary y chromaticity.- Returns:
- green-primary y chromaticity
-
getXB
public float getXB()Gets the blue-primary x chromaticity.- Returns:
- blue-primary x chromaticity
-
getYB
public float getYB()Gets the blue-primary y chromaticity.- Returns:
- blue-primary y chromaticity
-