Beispiel #1
0
        /// <summary>
        /// Creates a copy of the BitArray with the same values
        /// </summary>
        /// <returns></returns>
        public BitArray2D Clone()
        {
            var new_bitarray2d = new BitArray2D(this._width, this._height);

            for (int i = 0; i < this.BitArray.Length; i++)
            {
                new_bitarray2d.BitArray[i] = this.BitArray[i];
            }

            return(new_bitarray2d);
        }
Beispiel #2
0
 public void Or(BitArray2D anotherArray)
 {
     this._bitarray.Or(anotherArray._bitarray);
 }