[Interest] About copying the image buffer with alpha blending

Till Oliver Knoll till.oliver.knoll at gmail.com
Wed Aug 29 12:45:07 CEST 2012

Am 29.08.2012 um 12:05 schrieb <song.7.liu at nokia.com>:

> QImage(const QString &fileName, const char *format = 0);
> If I want to use Format_ARGB8565_Premultiplied, so what’s the format string in above constructor ?

Pay attention! Carefully read the documentation ;)

It will be immediatelly clear that you are confusing the "file format" ("JPG", "PNG", ...) with the "pixel format" (RGBA32, ...)!

(Just like I did for a second as well).

You need to use the pixel format conversion/query methods.

Again, refer to the Qt docs.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120829/d735d646/attachment.html>

More information about the Interest mailing list