簡體   English   中英

從AForge.Net videosourceplayer獲取圖像的一部分

[英]Get part of image from AForge.Net videosourceplayer

有人可以幫我解決這個問題嗎?

我將AForge.Net的VideoSourcePlayer控件,一個圖片框和一個按鈕放在表單上。 單擊時,我只想顯示當前幀到圖片框的區域。 我可以使用以下代碼顯示整個框架:

 Bitmap bitmap = (Bitmap)videoSourcePlayer1.GetCurrentVideoFrame().Clone();
 pictureBox1.Image = bitmap;
Bitmap bitmap = this.VideoSourcePlayer.GetCurrentVideoFrame();

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM