1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qpngio.cpp:653 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QPNGImagePacker Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QPNGImagePacker Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QPNGImagePacker class creates well-compressed PNG animations.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qpngio-h.html">qpngio.h</a>></tt>
|
---|
37 | <p><a href="qpngimagepacker-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn><a href="#QPNGImagePacker"><b>QPNGImagePacker</b></a> ( QIODevice * iod, int storage_depth, int conversionflags )</li>
|
---|
41 | <li class=fn>void <a href="#setPixelAlignment"><b>setPixelAlignment</b></a> ( int x )</li>
|
---|
42 | <li class=fn>bool <a href="#packImage"><b>packImage</b></a> ( const QImage & img )</li>
|
---|
43 | </ul>
|
---|
44 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
45 |
|
---|
46 |
|
---|
47 | The QPNGImagePacker class creates well-compressed PNG animations.
|
---|
48 | <p>
|
---|
49 |
|
---|
50 | <p> By using transparency, QPNGImagePacker allows you to build a PNG
|
---|
51 | image from a sequence of QImages.
|
---|
52 | <p> Images are added using <a href="#packImage">packImage</a>().
|
---|
53 | <p>See also <a href="graphics.html">Graphics Classes</a> and <a href="images.html">Image Processing Classes</a>.
|
---|
54 |
|
---|
55 | <hr><h2>Member Function Documentation</h2>
|
---|
56 | <h3 class=fn><a name="QPNGImagePacker"></a>QPNGImagePacker::QPNGImagePacker ( <a href="qiodevice.html">QIODevice</a> * iod, int storage_depth, int conversionflags )
|
---|
57 | </h3>
|
---|
58 | Creates an image packer that writes PNG data to IO device <em>iod</em>
|
---|
59 | using a <em>storage_depth</em> bit encoding (use 8 or 32, depending on
|
---|
60 | the desired quality and compression requirements).
|
---|
61 | <p> If the image needs to be modified to fit in a lower-resolution
|
---|
62 | result (e.g. converting from 32-bit to 8-bit), use the <em>conversionflags</em> to specify how you'd prefer this to happen.
|
---|
63 | <p> <p>See also <a href="qt.html#ImageConversionFlags-enum">Qt::ImageConversionFlags</a>.
|
---|
64 |
|
---|
65 | <h3 class=fn>bool <a name="packImage"></a>QPNGImagePacker::packImage ( const <a href="qimage.html">QImage</a> & img )
|
---|
66 | </h3>
|
---|
67 | Adds the image <em>img</em> to the PNG animation, analyzing the
|
---|
68 | differences between this and the previous image to improve
|
---|
69 | compression.
|
---|
70 |
|
---|
71 | <h3 class=fn>void <a name="setPixelAlignment"></a>QPNGImagePacker::setPixelAlignment ( int x )
|
---|
72 | </h3>
|
---|
73 | Aligns pixel differences to <em>x</em> pixels. For example, using 8 can
|
---|
74 | improve playback on certain hardware. Normally the default of
|
---|
75 | 1-pixel alignment (i.e. no alignment) gives better compression and
|
---|
76 | performance.
|
---|
77 |
|
---|
78 | <!-- eof -->
|
---|
79 | <hr><p>
|
---|
80 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
81 | Copyright © 1995-2007
|
---|
82 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
83 | <table width=100% cellspacing=0 border=0><tr>
|
---|
84 | <td>Copyright © 2007
|
---|
85 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
86 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
87 | </table></div></address></body>
|
---|
88 | </html>
|
---|