[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 14:41:19
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 20 February 2003 13:39, Nicolas Goutte wrote:
> The difference of the depth is just due to padding.
>
> In true color, pixels are normally 3 bytes for red, gren and blue (RGB). This
> makes 24 bits. But processors (be it a CPU or a graphic ship) can only handle
> 8, 16 or 32 bits (and more). So 24 bits must be handled as 3 times 8 bits. So
> for handling (especially moving) a pixel you need three 8 bit operations.
>
> With 32 bits, you have 8 bits that are used as padding.
Alpha channel, not padding.
(see docu for QImage::setAlphaBuffer)
- --
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+VOkP72KcVAmwbhARAlphAJ4sqktOOsNlAXxwv+n37S0FqnhJGACdGL5Y
jqN5iSdcAwRVLmheRRHepZ4=
=ObgU
-----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