簡體   English   中英

位圖圖像另存為空白圖像

[英]bitmap image saving as blank image

我需要捕獲客戶端屏幕,所以我推薦了http://www.csharphelp.com/2006/11/capturing-the-screen-image-using-c/

它在本地工作正常,但在服務器上我的圖像保存為空白圖像

    System.Drawing.Bitmap outputImage  = CaptureScreen.CaptureScreen.GetDesktopImage();
    string path = HttpContext.Current.Server.MapPath("~/" + "Corporate/testimages/ab1.png");

    outputImage.Save(path);

幫我提前謝謝...

我認為問題是,您的應用程序由沒有桌面環境的用戶運行。 已檢測到諸如 Web 應用程序之類的 Windows 用戶,但該用戶沒有屏幕。

您應該考慮在單獨的程序中提取篩選過程。

編輯:Kratika 不想篩選客戶屏幕,(s) 他想篩選其他網站並提供下載鏈接。

暫無
暫無

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

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