QPNGImagePacker(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– 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 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