QPNGImagePacker(3qt)
π QPNGImagePacker π
okay bestie, welcome to the qpngimagepacker page from the Qt 3 manual (section 3qt) β it's giving "small class, big glow-up for your PNG animations" β¨
β¨ NAME β¨
QPNGImagePacker β creates well-compressed PNG animations π
πΈ SYNOPSIS πΈ
#include <qpngio.h>
π«Ά Public Members
QPNGImagePacker ( QIODevice * iod, int storage_depth, int
conversionflags )
void setPixelAlignment ( int x )
bool packImage ( const QImage & img )
π¦ DESCRIPTION π¦
The QPNGImagePacker class creates well-compressed PNG animations. no cap, that's literally its whole thing π
By using transparency, QPNGImagePacker lets you build a PNG image out of a whole sequence of QImages. one after another. like a lil flipbook π
Images get added with packImage().
See also Graphics Classes and Image Processing Classes.
π MEMBER FUNCTION DOCUMENTATION π
π QPNGImagePacker::QPNGImagePacker ( QIODevice * iod, int storage_depth, int conversionflags )
Creates an image packer that writes PNG data to the IO device iod using a storage_depth bit encoding (use 8 or 32, depending on the quality and compression you're chasing, bestie β pick your fighter β¨).
If the image has to be modified to fit into a lower-resolution result (like converting from 32-bit to 8-bit, the classic glow-down π), use the conversionflags to say how you'd prefer that to happen.
See also Qt::ImageConversionFlags.
π bool QPNGImagePacker::packImage ( const QImage & img )
Adds the image img to the PNG animation, and it analyzes the differences between this image and the previous one to improve compression. so smart, so iconic π§ π
π void QPNGImagePacker::setPixelAlignment ( int x )
Aligns pixel differences to x pixels. For example, using 8 can improve playback on certain hardware. Normally the default of 1-pixel alignment (i.e. no alignment) gives better compression and performance. main character energy: the default is already serving π«Ά
π₯ SEE ALSO π₯
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
π AUTHOR π
Generated automatically from the source code. (not me writing a whole essay by hand, the machine did it πβ¨)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qpngimagepacker.3qt) and the Qt version (3.3.8). do NOT forget those two, fr fr, they need them to help you π
lowkey a whole moment: this page is Trolltech AS's, dated 2 February 2007, and yeah β it's the QPNGImagePacker(3qt) page. that's the sign-off bestie, go pack some PNGs, you ate πβ¨π
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms