コード例 #1
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkHIST pngChunkHIST = (PngChunkHIST)other;

            hist = new int[pngChunkHIST.hist.Length];
            Array.Copy(pngChunkHIST.hist, 0, hist, 0, pngChunkHIST.hist.Length);
        }
コード例 #2
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkHIST otherx = (PngChunkHIST)other;

            hist = new int[otherx.hist.Length];
            System.Array.Copy((Array)(otherx.hist), 0, (Array)(this.hist), 0, otherx.hist.Length);
        }
コード例 #3
0
ファイル: PngChunkHIST.cs プロジェクト: Chapmania/Juniper
        private void CloneData(PngChunkHIST other)
        {
            if (other is null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            hist = new int[other.hist.Length];
            Array.Copy(other.hist, 0, hist, 0, other.hist.Length);
        }