Answer the question
In order to leave comments, you need to log in
How to take a screenshot of a specific area by coordinates?
There is a code that takes 4 handle coordinates.
void Window::getCoordinates() {
RECT r;
GetWindowRect(Window::pid.hWnd, &r);
Window::coordinates[0] = r.bottom, Window::coordinates[1] = r.top;
Window::coordinates[2] = r.right, Window::coordinates[3] = r.left;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question