Package com.mcgath.jhove.module.png
Class TrnsChunk
- java.lang.Object
-
- com.mcgath.jhove.module.png.PNGChunk
-
- com.mcgath.jhove.module.png.TrnsChunk
-
public class TrnsChunk extends PNGChunk
The Transparency chunk. The interpretation of the Transparency chunk depends on the color type. For color type 0 (greyscale) there is one two-byte integer, representing the gray sample value. For color type 2 (RGB) there are three two-byte integers, representing the red, blue, and green sample values respectively. For color type 3 (palette), the values are bytes giving the alpha value for the palette index. The number of values may be less than or equal to the length of the palette.
-
-
Field Summary
-
Fields inherited from class com.mcgath.jhove.module.png.PNGChunk
_dstream, _module, _nisoMetadata, _propList, ancillary, bKGD_HEAD_SIG, cHRM_HEAD_SIG, chunkData, chunkType, crc, duplicateAllowed, gAMA_HEAD_SIG, hIST_HEAD_SIG, iCCP_HEAD_SIG, IDAT_HEAD_SIG, IEND_HEAD_SIG, IHDR_HEAD_SIG, iTXt_HEAD_SIG, length, pHYs_HEAD_SIG, PLTE_HEAD_SIG, sBIT_HEAD_SIG, sPLT_HEAD_SIG, sRGB_HEAD_SIG, tEXt_HEAD_SIG, tIME_HEAD_SIG, tRNS_HEAD_SIG, zTXt_HEAD_SIG
-
-
Constructor Summary
Constructors Constructor Description TrnsChunk(int sig, long leng)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessChunk(RepInfo info)Process the data in the chunk.-
Methods inherited from class com.mcgath.jhove.module.png.PNGChunk
chunkTypeString, getChunkData, getChunkType, getCRC, getLength, makePNGChunk, processChunkCommon, readCRC, readUnsignedByte, readUnsignedInt, readUnsignedShort, setInputStream, setModule, setNisoMetadata, setPropertyList, skipBytes
-
-
-
-
Method Detail
-
processChunk
public void processChunk(RepInfo info) throws Exception
Process the data in the chunk.- Overrides:
processChunkin classPNGChunk- Throws:
Exception
-
-