I know it's possible to save pixmaps like this:
myPixmap.save("image.bmp", 0, -1);
but the resulting file is 24 bpp rgb image.
Is it also possible to make 8 bpp grayscale images this way?
I know it's possible to save pixmaps like this:
myPixmap.save("image.bmp", 0, -1);
but the resulting file is 24 bpp rgb image.
Is it also possible to make 8 bpp grayscale images this way?
I needed to get a 1 bpp grayscale the other day for OCR purposes, but I never could get Qt to do this
You will have to create an image plug-in that lets you do this: http://doc.trolltech.com/qq/qq17-imageio.html
I guess you could abuse QIcon to produce a grayscaled image:
J-P Nurmi
Bookmarks