Lines Matching defs:img
1129 void UIMachineView::dimImage(QImage &img)
1131 for (int y = 0; y < img.height(); ++ y)
1135 if (img.depth() == 32)
1137 for (int x = 0; x < img.width(); ++ x)
1139 int gray = qGray(img.pixel (x, y)) / 2;
1140 img.setPixel(x, y, qRgb (gray, gray, gray));
1145 ::memset(img.scanLine (y), 0, img.bytesPerLine());
1150 if (img.depth() == 32)
1152 for (int x = 0; x < img.width(); ++ x)
1154 int gray = (2 * qGray (img.pixel (x, y))) / 3;
1155 img.setPixel(x, y, qRgb (gray, gray, gray));