def make_revealer(self):
    revealer = self.pixelcode_2x2(self.rawnoise)
    revealer.invertPixels()
    revealer = QBitmap.fromImage(revealer)
    revealer = revealer.scaled(self.f_size, Qt.KeepAspectRatio)
    revealer = self.overlay_marks(revealer)
    self.filename_prefix = 'revealer_'
    revealer.save(self.get_path_to_revealer_file('.png'))
    self.toPdf(QImage(revealer))
    QDesktopServices.openUrl(QUrl.fromLocalFile(self.get_path_to_revealer_file('.pdf')))
def make_revealer(self):
    revealer = self.pixelcode_2x2(self.rawnoise)
    revealer.invertPixels()
    revealer = QBitmap.fromImage(revealer)
    revealer = revealer.scaled(self.f_size, Qt.KeepAspectRatio)
    revealer = self.overlay_marks(revealer)
    self.filename_prefix = 'revealer_'
    revealer.save(self.get_path_to_revealer_file('.png'))
    self.toPdf(QImage(revealer))
    QDesktopServices.openUrl(QUrl.fromLocalFile(self.get_path_to_revealer_file('.pdf')))