Class 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.
    • Constructor Detail

      • TrnsChunk

        public TrnsChunk​(int sig,
                         long leng)
        Constructor