原創|使用教程|編輯:郝浩|2013-08-01 17:09:41.000|閱讀 444 次
概述:如何在在ImagXpress中進行圖像的捕捉、 復制和粘貼呢?下面詳細來看一下,在多種情況下,圖和實現這些操作。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
如何在在ImagXpress中進行圖像的捕捉、 復制和粘貼呢?下面詳細來看一下,在多種情況下,圖和實現這些操作。
捕捉屏幕圖像
捕捉通過ImageXView窗口綁定的屏幕范圍,以及保存到一個ImageX對象。
下面的示例演示了如何捕捉由ImageXView窗口綁定的屏幕范圍:
C#示例
// This code demonstrates how to assign the image object to a viewer ImageXView1.Image = targetImageX; // capture the screen area within the viewer and save it to the target image object ImageXView1.CaptureControl(); // targetImageX now contains the image in the screen area bounded by the control.
捕捉在一個指定窗口里的整個屏幕區域
下面的示例演示了如何捕捉在一個指定窗口中整個的平布區域:
C#示例
// This code demonstrates how to assign the image object to a viewer ImageXView1.Image = targetImageX; // capture the screen area within the viewer and save it to the target image object // if only a part of the window's screen area should be captured, specify a captureRectangle ImageXView1.CaptureWindow(hWnd, captureRectangle); // targetImageX now contains the image in the screen area bounded by the control.
復制一個ImageX 對象到剪貼板
下面的示例說明了如何將圖像復制到剪貼板:
C#示例
// This code demonstrates how to assign an image object to a viewer ImageXView1.Image = sourceImageX; // copy the image to the clipboard ImageXView1.CopyToClipboard(); // the clipboard now contains a copy of the sourceImageX object.
粘貼來自剪貼板的對象到一個ImageX 的對象
下面的示例演示了如何將一個來自剪貼板的對象粘貼到一個ImageX對象上:
C#示例
// This code demonstrates how to assign an image object to a viewer ImageXView1.Image = targetImageX; // paste the image from the clipboard ImageXView1.PasteFromClipboard(); // the targetImageX object now has the image from the clipboard.>>>ImagXpress 下載
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件