Blending output with paper

This commit is contained in:
Jakub Melka
2021-02-11 19:42:55 +01:00
parent e743761ce4
commit 3da8cf2252
3 changed files with 92 additions and 59 deletions

View File

@ -26,7 +26,7 @@ namespace pdfplugin
{
OutputPreviewDialog::OutputPreviewDialog(const pdf::PDFDocument* document, pdf::PDFWidget* widget, QWidget* parent) :
QDialog(parent),
QDialog(parent, Qt::Dialog | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint),
ui(new Ui::OutputPreviewDialog),
m_inkMapper(document),
m_document(document),
@ -80,7 +80,7 @@ void OutputPreviewDialog::updateImage()
renderer.processContents();
renderer.endPaint();
QImage image = renderer.toImage(false);
QImage image = renderer.toImage(false, true, pdf::PDFRGB{ 1.0f, 1.0f, 1.0f });
ui->imageLabel->setPixmap(QPixmap::fromImage(image));
}