Class PngChromaticities

java.lang.Object
com.itextpdf.io.image.PngChromaticities

public class PngChromaticities extends Object
Stores the CIE x/y chromaticities declared by a PNG image.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getXB()
    Gets the blue-primary x chromaticity.
    float
    getXG()
    Gets the green-primary x chromaticity.
    float
    getXR()
    Gets the red-primary x chromaticity.
    float
    getXW()
    Gets the white-point x chromaticity.
    float
    getYB()
    Gets the blue-primary y chromaticity.
    float
    getYG()
    Gets the green-primary y chromaticity.
    float
    getYR()
    Gets the red-primary y chromaticity.
    float
    getYW()
    Gets the white-point y chromaticity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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