QRgb QImage::pixel ( int x, int y )
QColor(QRgb rgb )
int QColor::blue () const
//QRgb это #AARRGGBB :: An ARGB quadruplet on the format #AARRGGBB, equivalent to an unsigned int.QRgb color;int colorGreen=(color & 0x0000FF00)>>16;
if (line > 0 && line < img.height()) { for (int i=0;i<img.width();i++) { QColor color(img.pixel(i,line)); if (color.black() >= this->RGBBlack) return true; } } return false;
if (x <= img.width() && y <= img.height()) { QColor color(img.pixel(x,y)); if (color.black() >= this->RGBBlack) return true; } return false;