Class JpegComponent

  • All Implemented Interfaces:
    java.io.Serializable

    public class JpegComponent
    extends java.lang.Object
    implements java.io.Serializable
    Stores information about a JPEG image component such as the component id, horiz/vert sampling factor and quantization table number.
    See Also:
    Serialized Form
    • Constructor Detail

      • JpegComponent

        public JpegComponent​(int componentId,
                             int samplingFactorByte,
                             int quantizationTableNumber)
    • Method Detail

      • getComponentId

        public int getComponentId()
      • getComponentName

        public java.lang.String getComponentName()
        Returns the component name (one of: Y, Cb, Cr, I, or Q)
        Returns:
        the component name
      • getQuantizationTableNumber

        public int getQuantizationTableNumber()
      • getHorizontalSamplingFactor

        public int getHorizontalSamplingFactor()
      • getVerticalSamplingFactor

        public int getVerticalSamplingFactor()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object