[Qt-interest] Saving monochrome image
M. Bashir Al-Noimi
mbnoimi at gmx.com
Sat Aug 15 20:43:56 CEST 2009
Hi All,
I want to save a QImage object in monochrome format (1 Bit Back and
White) so I'm using the following code for that:
QImage result("RGB.tif", QImage::Format_RGB32);
QBitmap::fromImage(result, Qt::MonoOnly).save("BW.tif");
but the resultant format of the image is RGB!!!
How I can save QImage object in monochrome format ?
-----
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090815/b8b539cf/attachment.html
More information about the Qt-interest-old
mailing list