PDA

View Full Version : How to print a QGraphicsScene on a color printer using monochrome mode?



momo
25th May 2015, 14:24
Hello everyone,

I want to send a QGraphicsScene to a color printer and print it with monochrome mode, Qt helper shows that QPrinter have two color mode: Color and GrayScale, but I just want to print the picture with black and white, and don't want to print gray color which shows displayed as some Discrete black dots, what should I do?

Thank you for your help.

Momo

ChrisW67
26th May 2015, 12:24
Render the scene to a Qbitmap, monochrome QImage, or colour QImage that you then post-process to reduce the colour to black and white... then print that.

momo
26th May 2015, 14:52
Render the scene to a Qbitmap, monochrome QImage, or colour QImage that you then post-process to reduce the colour to black and white... then print that.
Thank you for your answer, I've try that method before, but the scene is too large and QImage could not worked correct.:(