1QPNGImagePacker(3qt) QPNGImagePacker(3qt)
2
3
4
6 QPNGImagePacker - Creates well-compressed PNG animations
7
9 #include <qpngio.h>
10
11 Public Members
12 QPNGImagePacker ( QIODevice * iod, int storage_depth, int
13 conversionflags )
14 void setPixelAlignment ( int x )
15 bool packImage ( const QImage & img )
16
18 The QPNGImagePacker class creates well-compressed PNG animations.
19
20 By using transparency, QPNGImagePacker allows you to build a PNG image
21 from a sequence of QImages.
22
23 Images are added using packImage().
24
25 See also Graphics Classes and Image Processing Classes.
26
29 conversionflags )
30 Creates an image packer that writes PNG data to IO device iod using a
31 storage_depth bit encoding (use 8 or 32, depending on the desired
32 quality and compression requirements).
33
34 If the image needs to be modified to fit in a lower-resolution result
35 (e.g. converting from 32-bit to 8-bit), use the conversionflags to
36 specify how you'd prefer this to happen.
37
38 See also Qt::ImageConversionFlags.
39
41 Adds the image img to the PNG animation, analyzing the differences
42 between this and the previous image to improve compression.
43
45 Aligns pixel differences to x pixels. For example, using 8 can improve
46 playback on certain hardware. Normally the default of 1-pixel alignment
47 (i.e. no alignment) gives better compression and performance.
48
49
51 http://doc.trolltech.com/qpngimagepacker.html
52 http://www.trolltech.com/faq/tech.html
53
55 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
56 license file included in the distribution for a complete license
57 statement.
58
60 Generated automatically from the source code.
61
63 If you find a bug in Qt, please report it as described in
64 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
65 help you. Thank you.
66
67 The definitive Qt documentation is provided in HTML format; it is
68 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
69 web browser. This man page is provided as a convenience for those users
70 who prefer man pages, although this format is not officially supported
71 by Trolltech.
72
73 If you find errors in this manual page, please report them to qt-
74 bugs@trolltech.com. Please include the name of the manual page
75 (qpngimagepacker.3qt) and the Qt version (3.3.8).
76
77
78
79Trolltech AS 2 February 2007 QPNGImagePacker(3qt)