Why does GetObject return an BITMAP with null bmBits?

后端 未结 4 2296
南笙
南笙 2021-02-14 02:09

Context: I\'m trying to take a screenshot of another window to feed it into OpenCV. I found some code on the web that should be able to convert a BITMAP to something OpenCV can

4条回答
  •  轮回少年
    2021-02-14 02:28

    One thing which you could do is to look at the return value of GetObject. If 0 you know something has gone wrong. Something wrong with the parameters of the call.

提交回复
热议问题