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 客户端和服务端对象 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; //存储成功后 _cstore.AfterCStore += _cstore_AfterCStore; }
private void 存储ToolStripMenuItem_Click(object sender, EventArgs e) { string filename ="D:\\Xa.dcm"; _cstore.Store(_server, filename); }
基于浏览器的客户端图像浏览器Prizm ActiveX Viewer在线订购专享8折!
jQWidgets是一个基于jQuery JavaScript的综合性和创新性的HTML5 UI组件库,旨在帮助开发者创建专业、跨平台的Web应用程序,并最大限度的节省开发时间。jQWidgets包含30多种UI组件,是最快的JavaScript UI框架之一。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | < title data-filtered = "filtered" >Hello World</ title > < script type = "text/javascript" src = "Resources/dynamsoft.webtwain.initiate.js" data-filtered = "filtered" > </ script > < script type = "text/javascript" src = "Resources/dynamsoft.webtwain.config.js" data-filtered = "filtered" > </ script > < input type = "button" value = "Scan" onclick = "AcquireImage();" > < div id = "dwtcontrolContainer" > </ div > < script type = "text/javascript" data-filtered = "filtered" > var DWObject; function Dynamsoft_OnReady(){ DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); } function AcquireImage(){ if(DWObject) { DWObject.IfDisableSourceAfterAcquire = true; DWObject.SelectSource(); DWObject.OpenSource(); DWObject.AcquireImage(); } } </ script > |
1 | Dynamsoft.WebTwainEnv.Containers = [{ContainerId:'dwtcontrolContainer',Width:270,Height:350}]; |
1 | Dynamsoft.WebTwainEnv.Containers = [{ContainerId:'dwtcontrolContainer',Width: '50%',Height:350}]; |
1 2 3 4 5 6 | .DYNLogo { background:url(logo.gif) left top no-repeat; width:159px; height:39px; } |
1 2 3 4 5 6 7 8 9 10 11 12 | function OnWebTwainNotFoundOnWindowsCallback(ProductName, InstallerUrl, bHTML5, bIE, bSafari, bSSL, strIEVersion) { } /* This callback is triggered when Dynamic Web TWAIN is not installed on a PC running Windows */ function OnWebTwainNotFoundOnMacCallback(ProductName, InstallerUrl, bHTML5, bIE, bSafari, bSSL, strIEVersion) { } /* This callback is triggered when Dynamic Web TWAIN is not installed on a MAC */ function OnWebTwainOldPluginNotAllowedCallback(ProductName) { } /* This callback is triggered when Dynamic Web TWAIN is disabled by a non-IE browser */ function OnWebTwainNeedUpgradeCallback(ProductName, InstallerUrl, bHTML5, bMac, bIE, bSafari, bSSL, strIEVersion) { } /* This callback is triggered when Dynamic Web TWAIN installed on the machine is older than the //one on the server and upgrade is needed */ |
本次教程到此结束,希望能对Dynamic Web TWAIN的用户带来帮助,接下来还会有更多的相关教程,敬请期待!
试用、下载、了解更多产品信息请点击"咨询在线客服"
2017慧都十四周年狂欢搞事情!砸金蛋100%抽现金红包、满额豪送iPhone X、iPhone 8、DevExpress汉化免费送、团队升级培训套包劲省10万元......更多惊喜等您来探索!
using System.Windows.Forms; using Leadtools; using Leadtools.Codecs; using Leadtools.WinForms; using Leadtools.Annotations;
RasterImageViewer viewer = new RasterImageViewer(); RasterImage img; AnnAutomationManager annger; AnnAutomation automation;
private void initControl() { Support.SetLicense(); viewer.Dock = DockStyle.Fill; panel1.Controls.Add(viewer); viewer.HorizontalAlignMode = RasterPaintAlignMode.Center; viewer.VerticalAlignMode = RasterPaintAlignMode.Center; loadImage("qwe.jpg"); if (viewer.Image != null) { // create and setup the automation manager annger = new AnnAutomationManager(); // Instruct the manager to create the default (all) automation objects. annger.CreateDefaultObjects(); // create the toolbar and add it to the form annger.CreateToolBar(); Controls.Add(annger.ToolBar); // setup the automation (will create the container as well) automation = new AnnAutomation(annger, viewer); // add an event handler for changes to the current designer automation.CurrentDesignerChanged += new EventHandler(automation_CurrentDesignerChanged); // setup this automation as the active one automation.Active = true; } toolStripComboBox1.SelectedIndex = 0; }
private void loadImage(string filename) { img = new RasterCodecs().Load(filename); viewer.Image = img; }
private void automation_CurrentDesignerChanged(object sender, EventArgs e) { AnnAutomation automation = sender as AnnAutomation; AnnButtonRunDesigner buttonRunDesigner = automation.CurrentDesigner as AnnButtonRunDesigner; if (buttonRunDesigner != null) buttonRunDesigner.Run += new EventHandler(buttonRunDesigner_Run); }
private void buttonRunDesigner_Run(object sender, AnnRunDesignerEventArgs e) { if (e.OperationStatus == AnnDesignerOperationStatus.End) { AnnButtonObject btn = e.Object as AnnButtonObject; MessageBox.Show(string.Format("Button with text = {0} was clicked!", btn.Text)); } }
private void loadImage(string filename) { img = new RasterCodecs().Load(filename); viewer.Image = img; }
private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) { annger.UserMode = (toolStripComboBox1.SelectedIndex == 0) ? AnnUserMode.Design : AnnUserMode.Run; }
试用、下载、了解更多产品信息请点击"咨询在线客服"