资源简介
一个开源的基于.net的dicom库
自己重新编译过了,可以用,里面有
1 dicom库;
2 DicomScu(C-Store,C-Find,C-Move)
3 DicomPrintScp
等。
代码片段和文件信息
// mDCM: A C# DICOM library
//
// Copyright (c) 2006-2008 Colby Dillion
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
//
// Author:
// Colby Dillion (colby.dillion@gmail.com)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using Dicom.Data;
using Dicom.Utility;
using NLog;
using NLog.Config;
using NLog.Targets;
using NLog.Win32.Targets;
namespace Dicom
{
public delegate void DebugOutputHandler(String msg);
public static class Debug
{
static Debug() {
GetStartDirectory();
}
private static Logger _log;
public static Logger Log {
get {
if (_log == null) {
_log = LogManager.GetLogger(“DICOM“);
}
return _log;
}
set {
_log = value;
}
}
public static void InitializeSyslogLogger(bool console) {
InitializeSyslogLogger(514 console);
}
public static void InitializeSyslogLogger(int port bool console) {
LoggingConfiguration config = new LoggingConfiguration();
SyslogTarget st = new SyslogTarget();
st.Port = port;
config.AddTarget(“Syslog“ st);
config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug st));
if (console) {
ColoredConsoleTarget ct = new ColoredConsoleTarget();
ct.Layout = “${message}“;
config.AddTarget(“Console“ ct);
config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug ct));
}
LogManager.Configuration = config;
}
public static void InitializeConsoleDebugLogger() {
LoggingConfiguration config = new LoggingConfiguration();
ColoredConsoleTarget ct = new ColoredConsoleTarget();
ct.Layout = “${message}“;
config.AddTarget(“Console“ ct);
config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug ct));
LogManager.Configuration = config;
}
private static string _startdir;
public static string GetStartDirectory() {
if (_startdir == null) {
_startdir = Process.GetCurrentProcess().StartInfo.WorkingDirectory;
if (String.IsNullOrEmpty(_startdir)) {
_startdir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().Codebase);
_startdir = _startdir.Substring(6);
}
}
return _startdir;
}
public
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-07-12 08:28 dicomLib\
目录 0 2010-07-12 08:16 dicomLib\Bin\
目录 0 2010-07-12 08:16 dicomLib\Bin\x64\
文件 139264 2007-12-19 15:40 dicomLib\Bin\x64\Aga.Controls.dll
文件 120002 2008-02-16 19:55 dicomLib\Bin\x64\dicom.dic
文件 757760 2008-07-23 18:48 dicomLib\Bin\x64\Dicom.dll
文件 679424 2008-07-23 18:39 dicomLib\Bin\x64\Dicom.Jpeg.dll
文件 202240 2008-07-23 18:38 dicomLib\Bin\x64\Dicom.Jpeg2000.dll
文件 12800 2008-07-23 18:48 dicomLib\Bin\x64\Dicom.Linq.dll
文件 3592 2007-12-19 15:39 dicomLib\Bin\x64\dicom.pem
文件 1030667 2008-07-23 18:48 dicomLib\Bin\x64\Dicom.xm
文件 43008 2008-07-23 18:48 dicomLib\Bin\x64\DicomDump.exe
文件 106496 2008-07-23 18:48 dicomLib\Bin\x64\DicomPrintScp.exe
文件 33280 2008-07-23 18:48 dicomLib\Bin\x64\DicomScu.exe
文件 253952 2007-12-19 15:40 dicomLib\Bin\x64\NLog.dll
文件 208827 2008-02-16 18:45 dicomLib\Bin\x64\private.dic
目录 0 2010-07-12 08:16 dicomLib\Bin\x86\
文件 139264 2007-12-19 15:40 dicomLib\Bin\x86\Aga.Controls.dll
文件 120002 2008-02-16 19:55 dicomLib\Bin\x86\dicom.dic
文件 758272 2008-07-23 18:38 dicomLib\Bin\x86\Dicom.dll
文件 505344 2008-07-23 18:36 dicomLib\Bin\x86\Dicom.Jpeg.dll
文件 149504 2008-07-23 18:36 dicomLib\Bin\x86\Dicom.Jpeg2000.dll
文件 13312 2008-07-23 18:38 dicomLib\Bin\x86\Dicom.Linq.dll
文件 3592 2007-12-19 15:39 dicomLib\Bin\x86\dicom.pem
文件 1030667 2008-07-23 18:38 dicomLib\Bin\x86\Dicom.xm
文件 43520 2008-07-23 18:38 dicomLib\Bin\x86\DicomDump.exe
文件 107008 2008-07-23 18:38 dicomLib\Bin\x86\DicomPrintScp.exe
文件 33792 2008-07-23 18:38 dicomLib\Bin\x86\DicomScu.exe
文件 253952 2007-12-19 15:40 dicomLib\Bin\x86\NLog.dll
文件 208827 2008-02-16 18:45 dicomLib\Bin\x86\private.dic
文件 1181 2010-05-29 07:38 dicomLib\chisc.net.txt
............此处省略962个文件信息
- 上一篇:linux/unix系统编程手册下
- 下一篇:《蓝牙核心技术及应用》
评论
共有 条评论