📄 qimagedecoder.3qt
字号:
'\" t.TH QImageDecoder 3qt "5 August 2004" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQImageDecoder \- Incremental image decoder for all supported image formats.br.PP\fC#include <qasyncimageio.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQImageDecoder\fR ( QImageConsumer * c ) ".br.ti -1c.BI "\fB~QImageDecoder\fR () ".br.ti -1c.BI "const QImage& \fBimage\fR () ".br.ti -1c.BI "int \fBdecode\fR ( const uchar * " "buffer" ", int length ) ".br.in -1c.SS "Static Public Members".in +1c.ti -1c.BI "const char* \fBformatName\fR ( const uchar * " "buffer" ", int length ) ".br.ti -1c.BI "QImageFormatType* \fBformat\fR ( const char * name ) ".br.ti -1c.BI "QStrList \fBinputFormats\fR () ".br.ti -1c.BI "void \fBregisterDecoderFactory\fR ( QImageFormatType * ) ".br.ti -1c.BI "void \fBunregisterDecoderFactory\fR ( QImageFormatType * ) ".br.in -1c.SH DESCRIPTIONIncremental image decoder for all supported image formats..PPNew formats are installed by creating objects of class QImageFormatType, and the QMovie class can be used for using all installed incremental image formats; QImageDecoder is only useful for creating new ways of feeding data to an QImageConsumer..PPQt supports GIF reading, if it is configured that way during installation (see qgif.h). If it is, we are required to state that" The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated."..SH MEMBER FUNCTION DOCUMENTATION.SH "QImageDecoder::QImageDecoder ( QImageConsumer * c )"Constructs a QImageDecoder which will send change information to a given QImageConsumer..SH "QImageDecoder::~QImageDecoder ()"Destroys a QImageDecoder. The image it built is destroyed. The decoder built by the factory for the file format is destroyed. The consumer for which it decoded the image is \fInot\fR destroyed..SH "int QImageDecoder::decode ( const uchar * buffer, int length )"Call this function to decode some data into image changes. The data will be decoded, sending change information to the QImageConsumer of this QImageDecoder, until one of the change functions of the consumer returns FALSE..PPReturns the number of bytes consumed, 0 if consumption is complete, and -1 if decoding fails due to invalid data..SH "QImageFormatType* QImageDecoder::format ( const char * name ) \fC[static]\fR"Returns a QImageFormatType by name. This might be used in cases where the user needs to force data to be interpreted as being in a certain format. \fIname\fR is one of the formats listed by QImageDecoder::inputFormats(). Note that you will still need to supply decodable data to result->decoderFor() before you can begin decoding the data..SH "const char* QImageDecoder::formatName ( const uchar * buffer, int length ) \fC[static]\fR"Call this function to find the name of the format of the given header. The returned string is statically allocated..PPReturns 0 if the format is not recognized..SH "const QImage& QImageDecoder::image ()"Returns the image currently being decoded..SH "QStrList QImageDecoder::inputFormats () \fC[static]\fR"Returns a sorted list of formats for which asynchronous loading is supported..SH "void QImageDecoder::registerDecoderFactory ( QImageFormatType * f ) \fC[static]\fR"Registers a new QImageFormatType. This is not needed in application code as factories call this themselves..SH "void QImageDecoder::unregisterDecoderFactory ( QImageFormatType * f ) \fC[static]\fR"Unregisters a new QImageFormatType. This is not needed inapplication code as factories call this themselves..SH "SEE ALSO".BR http://doc.trolltech.com/qimagedecoder.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qimagedecoder.3qt) and the Qtversion (2.3.8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -