Ejemplo n.º 1
0
        private void CreateImageBox()
        {
            DicomUID classUid = DicomUID.BasicGrayscaleImageBoxSOPClass;

            if (_session.SessionClassUID == DicomUID.BasicColorPrintManagementMetaSOPClass)
            {
                classUid = DicomUID.BasicColorImageBoxSOPClass;
            }

            DicomUID instUid = DicomUID.Generate(SOPInstanceUID, _boxes.Count + 1);

            DcmImageBox box = new DcmImageBox(this, classUid, instUid);

            box.ImageBoxPosition = (ushort)(_boxes.Count + 1);
            _boxes.Add(box);

            _dataset.AddReferenceSequenceItem(DicomTags.ReferencedImageBoxSequence, classUid, instUid);
        }