예제 #1
0
        private void DicomPrint(List <String> filelist = null)
        {
            var maxDensity = Convert.ToDouble(MaxDensityText.Text);
            var minDensity = Convert.ToDouble(MinDensityText.Text);

            var client = new PrintClient
            {
                RemoteAddress      = RemoteHostText.Text,
                RemotePort         = int.Parse(RemotePortText.Text),
                CallingAE          = CallingAeText.Text.ToUpper(),
                CalledAE           = CalledAeText.Text.ToUpper(),
                NumberOfCopies     = int.Parse(CopiesText.Text),
                PrintPriority      = ((ComboBoxItem)PriortyComboBox.SelectedItem).Content.ToString(),
                MediumType         = ((ComboBoxItem)MediumComboBox.SelectedItem).Content.ToString(),
                FilmDestination    = ((ComboBoxItem)DestinationComboBox.SelectedItem).Content.ToString(),
                FilmSessionLabel   = DateTime.Now.ToString("yyyyMMdd_hhmmss.fff"),
                OwnerID            = "ME",
                ImageDisplayFormat = _format,
                FilmOrientation    = ((ComboBoxItem)OrientationComboBox.SelectedItem).Content.ToString(),
                FilmSizeID         = ((ComboBoxItem)FilmSizeComboBox.SelectedItem).Content.ToString(),
                MagnificationType  = ((ComboBoxItem)MagnificationComboBox.SelectedItem).Content.ToString(),
                MaxDensity         = (ushort)maxDensity,
                BorderDensity      = ((ComboBoxItem)BorderDensityComboBox.SelectedItem).Content.ToString(),
                MinDensity         = (ushort)minDensity,
                EmptyImageDensity  = ((ComboBoxItem)EmptyImageDensityComboBox.SelectedItem).Content.ToString(),
                Trim                     = "NO",
                SmoothingType            = _staticRef ? "SMOOTH" : "5", // Fjui = "SMOOTH", Kodac = 5
                Illumination             = 2000,
                ReflectedAmbientLight    = 10,
                RequestedResolutionID    = "STANDARD",
                Polarity                 = ((ComboBoxItem)PolarityComboBox.SelectedItem).Content.ToString(),
                TrueSize                 = Convert.ToBoolean(((ComboBoxItem)TrueSizeComboBox.SelectedItem).Content.ToString()),
                BurnInOverlays           = Convert.ToBoolean(((ComboBoxItem)OverlaysComboBox.SelectedItem).Content.ToString()),
                Anonymize                = Convert.ToBoolean(((ComboBoxItem)AnnonymizeComboBox.SelectedItem).Content.ToString()),
                SpecifyReferenceSequance = _staticRef,
                Files                    = filelist ?? _filesToOpen
            };

            client.Print();
        }
예제 #2
0
        private void DicomPrint(List<String> filelist = null)
        {
            var maxDensity = Convert.ToDouble(MaxDensityText.Text);
            var minDensity = Convert.ToDouble(MinDensityText.Text);

            var client = new PrintClient
            {
                RemoteAddress = RemoteHostText.Text,
                RemotePort = int.Parse(RemotePortText.Text),
                CallingAE = CallingAeText.Text.ToUpper(),
                CalledAE = CalledAeText.Text.ToUpper(),
                NumberOfCopies = int.Parse(CopiesText.Text),
                PrintPriority = ((ComboBoxItem) PriortyComboBox.SelectedItem).Content.ToString(),
                MediumType = ((ComboBoxItem) MediumComboBox.SelectedItem).Content.ToString(),
                FilmDestination = ((ComboBoxItem) DestinationComboBox.SelectedItem).Content.ToString(),
                FilmSessionLabel = DateTime.Now.ToString("yyyyMMdd_hhmmss.fff"),
                OwnerID = "ME",
                ImageDisplayFormat = _format,
                FilmOrientation = ((ComboBoxItem) OrientationComboBox.SelectedItem).Content.ToString(),
                FilmSizeID = ((ComboBoxItem) FilmSizeComboBox.SelectedItem).Content.ToString(),
                MagnificationType = ((ComboBoxItem) MagnificationComboBox.SelectedItem).Content.ToString(),
                MaxDensity = (ushort) maxDensity,
                BorderDensity = ((ComboBoxItem) BorderDensityComboBox.SelectedItem).Content.ToString(),
                MinDensity = (ushort) minDensity,
                EmptyImageDensity = ((ComboBoxItem) EmptyImageDensityComboBox.SelectedItem).Content.ToString(),
                Trim = "NO",
                SmoothingType = _staticRef ? "SMOOTH" : "5", // Fjui = "SMOOTH", Kodac = 5
                Illumination = 2000,
                ReflectedAmbientLight = 10,
                RequestedResolutionID = "STANDARD",
                Polarity = ((ComboBoxItem) PolarityComboBox.SelectedItem).Content.ToString(),
                TrueSize = Convert.ToBoolean(((ComboBoxItem) TrueSizeComboBox.SelectedItem).Content.ToString()),
                BurnInOverlays = Convert.ToBoolean(((ComboBoxItem) OverlaysComboBox.SelectedItem).Content.ToString()),
                Anonymize = Convert.ToBoolean(((ComboBoxItem) AnnonymizeComboBox.SelectedItem).Content.ToString()),
                SpecifyReferenceSequance = _staticRef,
                Files = filelist ?? _filesToOpen
            };
            client.Print();
        }