Exemplo n.º 1
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkSPLT otherx = (PngChunkSPLT)other;

            PalName     = otherx.PalName;
            SampleDepth = otherx.SampleDepth;
            Palette     = new int[otherx.Palette.Length];
            System.Array.Copy(otherx.Palette, 0, Palette, 0, Palette.Length);
        }
Exemplo n.º 2
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkSPLT pngChunkSPLT = (PngChunkSPLT)other;

            PalName     = pngChunkSPLT.PalName;
            SampleDepth = pngChunkSPLT.SampleDepth;
            Palette     = new int[pngChunkSPLT.Palette.Length];
            Array.Copy(pngChunkSPLT.Palette, 0, Palette, 0, Palette.Length);
        }
Exemplo n.º 3
0
        private void CloneData(PngChunkSPLT other)
        {
            if (other is null)
            {
                throw new System.ArgumentNullException(nameof(other));
            }

            PalName     = other.PalName;
            SampleDepth = other.SampleDepth;
            Palette     = new int[other.Palette.Length];
            System.Array.Copy(other.Palette, 0, Palette, 0, Palette.Length);
        }