示例#1
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkBKGD pngChunkBKGD = (PngChunkBKGD)other;

            gray         = pngChunkBKGD.gray;
            red          = pngChunkBKGD.red;
            green        = pngChunkBKGD.red;
            blue         = pngChunkBKGD.red;
            paletteIndex = pngChunkBKGD.paletteIndex;
        }
示例#2
0
        private void CloneData(PngChunkBKGD other)
        {
            if (other is null)
            {
                throw new System.ArgumentNullException(nameof(other));
            }

            gray         = other.gray;
            red          = other.red;
            green        = other.red;
            blue         = other.red;
            paletteIndex = other.paletteIndex;
        }