[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: 32-bit bimaps and QImage
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-02-20 11:23:58
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 20 February 2003 11:13, Clarence Dang wrote:
> On Thu, 16 Jan 2003 08:04 pm, Nicolas Goutte wrote:
> > On Thursday 16 January 2003 17:02, Clarence Dang wrote:
> > > On Wed, 8 Jan 2003 04:40 pm, Nicolas Goutte wrote:
> > > > On Wednesday 08 January 2003 22:04, Clarence Dang wrote:
> > > > 2a: in 32 bit mode, QT write 24 bit BMP images. As 16 bit BMP is
> > > > non-standard ("multimedia extensions"), QT does not seem to support it.
> > >
> > > But the HTML doc for QImage::convertDepth says "The depth argument must
> > > be 1, 8, 16, 32"...  The qimage code is very hard to read so I might be
> > > wrong here...
> >
> > That are the values for QT. It does not tell that QT will save at those
> > depths.
> >
> > In qimage.cpp, the function qt_write_dib writes out 24 bit BMP files for 32
> > bit depth. The code after the comment "32 bits" writes only 3 bytes per
> > pixel, that is 24 bits.
> >
> Wow, you're right.  I'm still curious about 2 things though:
> 
> 1. Why does QImage::depth() return 32 for a 24-bit BMP then?

Because Qt has no support for 24-bit images, that's for sure.

- -- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+VLrO72KcVAmwbhARAnGNAJ4tJZTK78H30PIrqU5vN6jBgIcx/QCfUNeE
x8Vo6RB/RlekX6qNSwvGdX8=
=OwPS
-----END PGP SIGNATURE-----

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic