getting window screenshot windows API

后端 未结 2 1401
感情败类
感情败类 2021-01-03 02:47

I am trying to make a program to work on top of an existing GUI to annotate it and provide extra calculations and statistical information. I want to do this using image reco

2条回答
  •  梦谈多话
    2021-01-03 03:08

    I think CImage class will be helpful.

    void CreateImage(HWND hwnd)
    {
        CImage img;
        img.m_hDC = ::GetWindowDC(hwnd);
        img.Save(strFileName);
    }
    

提交回复
热议问题