私はスクリーンショットを取り込んでそのフォルダに保存する小さなアプリケーションを持っています。ほとんどの場合、ほとんどの場合は動作しますが、Team Fortress 2や実行中などウォークラフト3は、OpenGLモードでは完全に黒い(または白い)画像を返します。誰にもこれを解決する方法がありますか?私は知りませんが、これは他の回答与えられた関連であるかどうか、Graphics.CopyFromScreenは黒い画面を返します
Bitmap bmp;
Graphics gfx;
bmp = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
gfx = Graphics.FromImage(bmpScreenshot);
gfx.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
bmpScreenshot.Save("image.jpg", ImageFormat.Jpeg);
しかし、スクリーンショットは、標準モードでWarcraft 3を実行している間は完全にキャプチャされます。 DirectXです。 –