Class BkgdChunk


  • public class BkgdChunk
    extends PNGChunk
    The bKGD (background color) chunk
    • Constructor Detail

      • BkgdChunk

        public BkgdChunk​(int sig,
                         long leng)
        Constructor
        Parameters:
        sig - : the chunktype
        leng - : the length
    • Method Detail

      • processChunk

        public void processChunk​(RepInfo info)
                          throws Exception
        Process the data in the chunk. All we do is note the presence of the chunk in a property. The greyscale, RGB, and palette backgrounds are all different kinds of data, so make them three different properties so that processing software doesn't get confused.
        Overrides:
        processChunk in class PNGChunk
        Parameters:
        info - : RepInfo object
        Throws:
        Exception