原創(chuàng)|使用教程|編輯:黃竹雯|2018-02-27 14:26:39.000|閱讀 465 次
概述:leadtools提供了封裝后的dicom插件,可以非常方便的開(kāi)發(fā)出dicom通訊部分的組件,本篇教程講解如何使用相關(guān)的接口進(jìn)行代碼編寫(xiě),實(shí)現(xiàn)Dicom協(xié)議中的CStore存儲(chǔ)操作。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
相關(guān)鏈接:
using Leadtools;
using Leadtools.Dicom;
using Leadtools.Dicom.Scu.Common;
using Leadtools.Dicom.Scu;
using Leadtools.MedicalViewer;
using System.Net;
using System.IO;
// CStore highlevel 客戶(hù)端和服務(wù)端對(duì)象
private StoreScu _cstore;
private DicomScp _server = new DicomScp();
private void initServer() {
_server = new DicomScp();
_server.AETitle = "L19_PACS_SCP64";
_server.PeerAddress = IPAddress.Parse("10.32.1.75");
_server.Port = 534;
_server.Timeout = 30;
}
private void initCstore() {
_cstore = new StoreScu();
_cstore.AETitle = "L19_CLIENT64";
_cstore.HostPort = 1030;
//存儲(chǔ)成功后
_cstore.AfterCStore += _cstore_AfterCStore;
}
private void 存儲(chǔ)ToolStripMenuItem_Click(object sender, EventArgs e)
{
string filename ="D:\\Xa.dcm";
_cstore.Store(_server, filename);
}
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn