我計劃的雙緩沖繪圖如下偽代碼:
請問:我如何實作從螢屏上截圖,并保存到記憶體的圖中(bmpMBoard),我是準備在重繪前將視窗截圖,重繪時把圖貼回去。
CLientDC XXDC(this)
Graphics memGraphics ;
Bitmap bmpMBoard(XXXWidth , XXXHeigh) ;
Graphics memGraphics (&bmpMBoard);
Graphics scrGraphics( screenDC->GetSafeHdc());
///繪圖
///
// 輸出
memGraphics .XXXXXXX
///
scrGraphics.DrawImage(&bmpMBoard , 0 , 0)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/258548.html
標籤:C++ 語言
上一篇:C++ 結構體
下一篇:c語言作業求助!!
