예제 #1
0
        public FilmBox StartFilmBox(string format, string orientation, string filmSize)
        {
            var filmBox = new FilmBox(FilmSession, null, DicomTransferSyntax.ExplicitVRLittleEndian)
                              {
                                  ImageDisplayFormat
                                      = format,
                                  FilmOrienation
                                      =
                                      orientation,
                                  FilmSizeID =
                                      filmSize,
                                  MagnificationType
                                      = "NONE",
                                  BorderDensity =
                                      "BLACK",
                                  EmptyImageDensity
                                      = "BLACK"
                              };

            filmBox.Initialize();
            FilmSession.BasicFilmBoxes.Add(filmBox);

            _currentFilmBox = filmBox;
            return filmBox;
        }
예제 #2
0
파일: PrintClient.cs 프로젝트: GMZ/fo-dicom
        private void OpenFilmBox()
        {
            var filmBox = new FilmBox(FilmSession, null, DicomTransferSyntax.ExplicitVRLittleEndian)
            {
                AnnotationDisplayFormatID = AnnotationDisplayFormatID,
                ConfigurationInformation = ConfigurationInformation,
                BorderDensity = BorderDensity,
                FilmOrientation = FilmOrientation,
                FilmSizeID = FilmSizeID,
                Illumination = Illumination,
                ImageDisplayFormat = ImageDisplayFormat,
                MagnificationType = MagnificationType,
                MaxDensity = MaxDensity,
                MinDensity = MinDensity,
                ReflectedAmbientLight = ReflectedAmbientLight,
                RequestedResolutionID = RequestedResolutionID,
                SmoothingType = SmoothingType,
                Trim = Trim
            };
            if (!SpecifyReferenceSequance)
            {
                filmBox.EmptyImageDensity = EmptyImageDensity;
            }

            filmBox.Initialize();
            FilmSession.BasicFilmBoxes.Add(filmBox);

            _currentFilmBox = filmBox;
        }