How can I turn a picture black and white format.
How can I turn a picture black and white format.
You asked this same question two weeks ago!
What about
Qt Code:
To copy to clipboard, switch view to plain text mode
as aamer4yu suggested?
If you want more control look into the sourceCode in qimage.cpp. ConvertToFormat uses an Image_Converter_Map. The one to mono is called "convert_X_to_Mono", which calls "dither_to_Mono" and uses qGray (perceptual mix of RGB) and a treshold of 128.
If that's not what you are looking for, you need to elaborate more!
Johannes
Bookmarks