I’m drawing text (textOut) and Rectangles on my window…
and I would like to get the RGB buffer from it…
How can I do it?
I’m drawing text (textOut) and Rectangles on my window… and I would like to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are 2 options:
First, you can use GetPixel(). I used it a lot. It works fine:
With our days processors picking up even a rect using this function may work in certain cases.
Second, you can copy contents of the screen into a bitmap. After that you can place it in clipboard, process with your code, etc. The core function there is:
I can post more detailed snippet if this is needed.