首款专门用于LOB应用开发的JavaScript框架点击下载>>>
为了模糊技术和艺术之间的界限,Sandpit库使用JavaScript和Canvas 2D元素进行创意编程。
通过GitHub或NPM并内置在ECMAScript 6中,Sandpit仍然使用着一个可能会在1.0版本之前更改的API进行开发。“Sandpit的目标是规范和简化创建编码的过程,利用代码来做漂亮的东西,”文档介绍里提到。“不管是在2D还是3D中,通常都会绘制到Canvas元素中。”Sandpit使用dat.GUI(一个改变JavaScript中的变量的轻量级GUI)来管理设置。
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; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | DWObject.SelectSource(); /* You should customize the settings after opening a source */ DWObject.OpenSource(); /* Hide the User Interface of the scanner */ DWObject.IfShowUI = false; /* Use the document feeder to scan in batches */ DWObject.IfFeederEnabled = true; /* Scan in Simplex mode (only 1 side of the page) */ DWObject.IfDuplexEnabled = false; /* Scan pages in GRAY */ DWObject.PixelType = EnumDWT_PixelType.TWPT_GRAY; /* Scan pages in 200 DPI */ DWObject.Resolution = 200; /* Start scanning */ DWObject.AcquireImage(); |
本次教程到此结束,希望能对Dynamic Web TWAIN的用户带来帮助,接下来还会有更多的相关教程,敬请期待!
C#: Smtp mailer = new Smtp(); mailer.AddAttachment(@"C:\My Documents\Report.xls"); |
VB.NET: Dim mailer As New Smtp() mailer.AddAttachment("C:\My Documents\Report.xls") |
C#: mailer.Message.Attachments.Add(@"C:\DataFiles\B4DVIS9H.TMP", "Annual report.doc"); |
VB.NET: mailer.Message.Attachments.Add("C:\DataFiles\B4DVIS9H.TMP", "Annual report.doc") |
我们针对 Visual Studio 2017 的多个关键领域进行了重点研发——包括改进基础部件、提供五星级的云和移动开发体验,以及提升 DevOps 功能,以确保 Visual Studio 2017 可以助力每一位开发者在各种平台上开发各类应用。
在发展 Visual Studio 2017 这一全新版本时,我们将云和移动开发置于最重要的位置。为了简化云开发流程,内置的各项工具将为您提供有关.NET Core、Azure 应用、微服务、容器等应用开发的完整集成功能,甚至现在可以更轻松地由 IDE 直接开发和部署 Azure 应用和服务。Visual Studio 2017 with Xamarin 让你能够通过先进的调试和分析工具更加快速地为安卓、iOS 和 Windows 平台开发移动应用。
我们也重视聆听用户心声,并清楚地了解到用户希望 Visual Studio 变得更为快速、更精简,即使所面对的应用开发和项目愈加庞大。因此,我们将为用户提供全新的安装体验,让一切变得轻便而模块化。为提高 Visual Studio 的性能,我们还增强了多项功能。Visual Studio 2017 还将交付多项全新特性,帮助开发团队能够轻松地实践现代化的 DevOps 做法,更为快速而持续地应对市场变化。为了帮助开发者更好地把自己的数据库嵌入 DevOps,加速发布周期,Redgate Data Tools 工具现已加入 Visual Studio Enterprise 2017 服务当中。
功能 | 要求 |
主要功能 | Microsoft Windows 95或更新版本 至少50 MB可用磁盘空间 128 MB内存或更多(更大的内存能提高性能) SVGA显卡或更好 |