Qt图像 - 以某种方式保存的图像不正确

时间:2017-03-10 01:07:34

标签: c++ qt qimage

我有一些基本上拍摄图像的代码,根据亮度/亮度编辑每个像素,并将RGB设置为四个值中的一个。函数# Use dot notation to invoke a method "I'm thirty one characters long!".length # => 31 # Use operator notation to invoke a method "Kit" + "tens!" # => "Kittens!" 负责逐像素光度检查。此函数返回QImage并保存。打开这个图像后,它与我开始使用的图像没有什么不同。为什么是这样?这是我的代码: 构造:

shadeCorrection()

功能:

DropSiteWindow::DropSiteWindow()
{
    for (int x = 0; x < tilePaths.count(); x++)
    {
        QImage image = QImage(tilePaths[x]);
        QPixmap newImg = QPixmap::fromImage(shadeCorrection(image));
        dropArea->setPixmap(newImg.scaledToWidth(this->width()));
        newImg.save("C:/Users/Nicholas/Desktop/Tiles/1/" + QString::number(x) + ".jpg");
    }
}

0 个答案:

没有答案