if  (pp[j]^[i*4+2]>160)  and    (pp[j]^[i*4+1]<50) and (pp[j]^[i*4+0]<50)  then  k:=k+1;

 

+2 是红色,   +1是绿色  +0 代表蓝色 哈哈