Код CPP
Код: Выделить всё
bool hasSufficientBlackPixels(){
int num = 0;
int r,g,b;
HDC hdc = GetDC(NULL);
COLORREF color;
for(int x = 416; x16) & 0xFF;
g = (color>>8) & 0xFF;
b = color & 0xFF;
// cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78746001/very-slow-cpp-color-detection-when-checking-for-mass-amounts-of-color-pixels[/url]
Мобильная версия