使用LEADTOOLS .NET Image SDK繪製和編輯註釋

LEADTOOLS Recognition Imaging SDK是精選的LEADTOOLS SDK功能集,旨在在企業級文檔自動化解決方案中構建端到端文檔成像應用程序,這些解決方案需要OCR,MICR,OMR,條形碼,表單識別和處理,PDF,打印捕獲 ,檔案,註釋和圖像查看功能。 這套功能強大的工具利用LEAD屢獲殊榮的圖像處理技術,智能識別可用於識別和提取任何類型的掃描或傳真形式圖像數據的文檔功能。

點擊下載LEADTOOLS Recognition Imaging SDK試用版【慧都網】

無論您的圖像處理需求是什麼,LEADTOOLS都有世界領先的SDK來完成所有繁重的工作。在以前的文章中,我們討論了 查看圖像, 保存圖像, 將圖像組合成一個文件以及 將一個文件拆分成多個圖像。LEADTOOLS還可以在圖像上繪製和編輯註釋和標記對象。
使用LEADTOOLS .NET Image SDK繪製和編輯註釋

在當今充滿數字協作和圖像共享的世界中,全面的註釋支持至關重要。人們和組織全天使用各種類型的註釋來引起對圖像或文檔特定方面的關注,並增強用戶體驗,生產力和安全性。該 LEADTOOLS註釋庫 支持標記對象和工具,包括高亮,參看附圖,添加註釋,進行測量,redacting或下劃線的文本,以及更多的強大的集合。

下面的代碼將幫助您入門,或者您隨時可以查看我們有關圖形註釋的完整教程 。我們還將介紹 如何 爲您的文檔或圖像創建自定義註釋。

private void Form1_Load(object sender, EventArgs e)
{
// Initialize Image Viewer object
viewer = new ImageViewer();
viewer.Dock = DockStyle.Fill;

// Initialize Automation Control for Image Viewer
automationControl = new ImageViewerAutomationControl();
automationControl.ImageViewer = viewer;

// Initialize a new RasterCodecs object
RasterCodecs codecs = new RasterCodecs();

// Load the main image into the viewer
viewer.Image = codecs.Load(@"C:\LEADTOOLS21\Resources\Images\ocr1.tif");

// Initialize the Interactive Mode for the Image Viewer
AutomationInteractiveMode automationInteractiveMode = new AutomationInteractiveMode();
automationInteractiveMode.AutomationControl = automationControl;

// Add the Interactive Mode to the Image Viewer
viewer.InteractiveModes.BeginUpdate();
viewer.InteractiveModes.Add(automationInteractiveMode);
viewer.InteractiveModes.EndUpdate();

if (viewer.Image != null)
{
// Create and set up the Automation Manager
annAutomationManager = new AnnAutomationManager();
annAutomationManager.RestrictDesigners = true;

// Instruct the Manager to create all the default Automation objects.
annAutomationManager.CreateDefaultObjects();

// Initialize the Manager Helper and create the Toolbar
// Add the Toolbar and the Image Viewer to the Controls
AutomationManagerHelper managerHelper = new AutomationManagerHelper(annAutomationManager);
managerHelper.CreateToolBar();
Controls.Add(managerHelper.ToolBar);
Controls.Add(viewer);

// Set up the Automation (it will create the Container as well)
automation = new AnnAutomation(annAutomationManager, automationControl);
// Set this Automation as the active one
automation.Active = true;

// Set the size of the Container to the size of the Image Viewer
automation.Container.Size =
automation.Container.Mapper.SizeToContainerCoordinates(LeadSizeD.Create(viewer.Image.ImageWidth,
viewer.Image.ImageHeight));
}
}

要自己進行測試,請確保下載最新的LEADTOOLS SDK評估( 如果尚未下載)。該試用版有效期爲60天,並提供無限制的聊天和電子郵件支持。

想要購買LEADTOOLS正版授權,或瞭解更多產品信息請【慧都諮詢在線客服】

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章