mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
JBIG2 - bugfixing
This commit is contained in:
@ -102,7 +102,7 @@ void MainWindow::on_actionAdd_JBIG2_image_triggered()
|
||||
QImage image(imageData.getWidth(), imageData.getHeight(), QImage::Format_Mono);
|
||||
const uchar* sourceData = reinterpret_cast<const uchar*>(imageData.getData().constData());
|
||||
Q_ASSERT(imageData.getData().size() == image.byteCount());
|
||||
std::transform(sourceData, sourceData + imageData.getData().size(), image.bits(), [](const uchar value) { return ~value; });
|
||||
std::transform(sourceData, sourceData + imageData.getData().size(), image.bits(), [](const uchar value) { return value; });
|
||||
addImage(file.fileName() + QString(", Decoded in %1 [msec]").arg(time), qMove(image));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user