翻譯|使用教程|編輯:鮑佳佳|2021-05-07 11:16:35.830|閱讀 219 次
概述:LEADTOOLS有世界領(lǐng)先的SDK來(lái)完成所有繁重的工作。在以前的文章中,我們討論了 查看圖像, 保存圖像, 將圖像組合成一個(gè)文件以及 將一個(gè)文件拆分成多個(gè)圖像。LEADTOOLS還可以在圖像上繪制和編輯注釋和標(biāo)記對(duì)象。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
LEADTOOLS Medical Imaging Suite幫您開(kāi)發(fā)功能強(qiáng)大的PACS和醫(yī)學(xué)成像應(yīng)用程序。其主要功能包括Medical Web Viewer框架,Medical 3D,無(wú)痕HTML5 DICOM查看器,DICOM多媒體解碼, 高級(jí)與低級(jí)的PACS SCP、SCU函數(shù)和控件,安全PACS通訊,打印至PACS,全面的DICOM數(shù)據(jù)集支持,圖像標(biāo)注,擴(kuò)展灰度級(jí)圖像顯示,例如窗位和LUT處理,以及專業(yè)醫(yī)學(xué)圖像處理。其它功能包括JPEG無(wú)損壓縮,JPIP和有符號(hào)及無(wú)符號(hào)圖像數(shù)據(jù)處理。
LEADTOOLS Medical Imaging Suite
無(wú)論您的圖像處理需求是什么,LEADTOOLS都有世界領(lǐng)先的SDK來(lái)完成所有繁重的工作。在以前的文章中,我們討論了 查看圖像, 保存圖像, 將圖像組合成一個(gè)文件以及 將一個(gè)文件拆分成多個(gè)圖像。LEADTOOLS還可以在圖像上繪制和編輯注釋和標(biāo)記對(duì)象。
下面的代碼將幫助您入門,或者您隨時(shí)可以查看我們有關(guān)圖形注釋的完整教程 。我們還將介紹 如何 為您的文檔或圖像創(chuàng)建自定義注釋。
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));
}
}
要自己進(jìn)行測(cè)試,請(qǐng)確保下載最新的LEADTOOLS SDK評(píng)估( 如果尚未下載)。該試用版有效期為60天,并提供無(wú)限制的聊天和電子郵件支持。
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@ke049m.cn