How to print a QGraphicsScene on a color printer using monochrome mode?
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
Re: How to print a QGraphicsScene on a color printer using monochrome mode?
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.
Re: How to print a QGraphicsScene on a color printer using monochrome mode?
Quote:
Originally Posted by
ChrisW67
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.:(