<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>TQImageFormat Class Reference</h1>
<p>The TQImageFormat class is an incremental image decoder for a specific image format.
<p> Your new subclass must reimplement the <ahref="#decode">decode</a>() function in order
to process your new format.
<p> New TQImageFormat objects are generated by new TQImageFormatType
factories.
<p>See also <ahref="graphics.html">Graphics Classes</a>, <ahref="images.html">Image Processing Classes</a>, and <ahref="multimedia.html">Multimedia Classes</a>.
<p> It should decode some or all of the bytes from <em>buffer</em> into <em>img</em>, calling the methods of <em>consumer</em> as the decoding proceeds
to inform that consumer of changes to the image. The length of the
data is given in <em>length</em>. The consumer may be 0, in which case
the function should just process the data into <em>img</em> without
telling any consumer about the changes. Note that the decoder must
store enough state to be able to continue in subsequent calls to
this method - this is the essence of the incremental image
loading.
<p> The function should return without processing all the data if it
reaches the end of a frame in the input.
<p> The function must return the number of bytes it has processed.
<!-- eof -->
<hr><p>
This file is part of the <ahref="index.html">TQt toolkit</a>.