[Qt-interest] Saving monochrome image
M. Bashir Al-Noimi
mbnoimi at gmx.com
Sun Aug 16 08:14:54 CEST 2009
Alessandro Portale wrote:
> I am afraid that in Qt 4.5, the tiff output will not produce what you
> are looking for. It will always write an Rgb image.
>
> Qt 4.6 will support monochrome image saving. See the commit:
> http://qt.gitorious.org/qt/qt/commit/2dc47ad36f235ba053a329179be4ed87d0b4d484
>
Do you think it better to create feature request in Qt issue tracker ?
> If I read the code correctly, it will use CCITT RLE compression for
> monochrome images.
>
> If you need monocrome tiff saving before Qt 4.6 comes out, you may need
> to use libtiff directly, or easier: Use FreeImage. Since you can get the
> image data -see "QImage::bits()"- from your QImage, it is not so hard to
> make those extra libs interoperate with your Qt app.
>
After your post, I fixed this issue by using a stupid way -but it works-
by passing arguments to gimp for converting the resultant tiffs to
uncompressed monochrome.
Thanks Alessandro
-----
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net/
More information about the Qt-interest-old
mailing list