com.drew.metadata.jpeg
Class JpegComponent
java.lang.Object
com.drew.metadata.jpeg.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 Summary |
JpegComponent(int componentId,
int samplingFactorByte,
int quantizationTableNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegComponent
public JpegComponent(int componentId,
int samplingFactorByte,
int quantizationTableNumber)
getComponentId
public int getComponentId()
getComponentName
public java.lang.String getComponentName()
throws MetadataException
- Returns the component name (one of: Y, Cb, Cr, I, or Q)
- Returns:
- the component name
- Throws:
MetadataException
- if the component id is not known
getQuantizationTableNumber
public int getQuantizationTableNumber()
getHorizontalSamplingFactor
public int getHorizontalSamplingFactor()
getVerticalSamplingFactor
public int getVerticalSamplingFactor()
Copyright © 2006 Drew Noakes. All Rights Reserved.