Exemple #1
0
        /**
         * Creates a new empty TRNS chunk, queues it for write and return it to the caller, who should fill its entries
         */
        public PngChunkTRNS CreateTRNSChunk()
        {
            PngChunkTRNS trns = new PngChunkTRNS(chunkList.imageInfo);

            QueueChunk(trns);
            return(trns);
        }
Exemple #2
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkTRNS otherx = (PngChunkTRNS)other;

            gray  = otherx.gray;
            red   = otherx.red;
            green = otherx.green;
            blue  = otherx.blue;
            if (otherx.paletteAlpha != null)
            {
                paletteAlpha = new int[otherx.paletteAlpha.Length];
                System.Array.Copy(otherx.paletteAlpha, 0, paletteAlpha, 0, paletteAlpha.Length);
            }
        }