int r = r_pixel_one-20; // then do the if statement... RGB(r_pixel_one >= r .......and so on
int r = r_pixel_one; // then do the if statement... RGB(r_pixel_one >= r - 20.......and so on
int r = r_pixel_one;
RGB(r_pixel_one >= r - 20
tree= RGB(r_pixel_one || r_pixel_one +1 || r_pixel_one+2 ... and so on)
r_pixel_one = GetRValue(pixel2);
int r = GetRValue(pixel2);
COLORREF tree = RGB(r_pixel_one >= r -20...........and so on.);
char r = ((char*)pixel2)[0]; //or GetRValue(pixel2)
char g = ((char*)pixel2)[1]; //GetGValue(pixel2)
char b = ((char*)pixel2)[2]; //GetBValue(pixel2)
if( (r >= 200 && r <= 225) &&//Red is ok
(g <= 150 && g >= 125) &&//Green is ok
(b >= 100 && b <= 200) )//B is also ok
{
//all are ok
...more code here...
}