How to read the screen pixels?

后端 未结 5 1668
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 08:17

I want to read a rectangular area, or whole screen pixels. As if screenshot button was pressed.

How i do this?

Edit: Working code:



        
5条回答
  •  爱一瞬间的悲伤
    2020-12-01 08:58

    You make a screenshot with BitBlt(). The size of the shot is set with the nWidth and nHeight arguments. The upper left corner is set with the nXSrc and nYSrc arguments.

提交回复
热议问题