예제 #1
0
 internal DicomFragment(DicomFragment source)
 {
     if (source._reference != null)
     {
         _reference = source._reference;
     }
     else
     {
         _bb = source._bb;
     }
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            DicomFragment frame = (DicomFragment)obj;

            byte[] source = this.GetByteArray();
            byte[] dest   = frame.GetByteArray();

            for (int index = 0; index < source.Length; index++)
            {
                if (!source[index].Equals(dest[index]))
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #3
0
 public void AddFragment(DicomFragment fragment)
 {
     _fragments.Add(fragment);
 }