TQImageFormatType(3qt)

NAME
TQImageFormatType - Factory that makes TQImageFormat objects

SYNOPSIS
#include <tqasyncimageio.h>

  Public Members
virtual ~TQImageFormatType ()
virtual TQImageFormat * decoderFor ( const uchar * buffer, int length ) = 0
virtual const char * formatName () const = 0

  Protected Members
TQImageFormatType ()

DESCRIPTION
The TQImageFormatType class is a factory that makes TQImageFormat objects.

Whereas the TQImageIO class allows for complete loading of images, TQImageFormatType allows for incremental loading of images.

New image file formats are installed by creating objects of derived classes of TQImageFormatType. They must implement decoderFor() and formatName().

TQImageFormatType is a very simple class. Its only task is to recognize image data in some format and make a new object, subclassed from TQImageFormat, which can decode that format.

The factories for formats built into TQt are automatically defined before any other factory is initialized. If two factories would recognize an image format, the factory created last will override the earlier one; you can thus override current and future built-in formats.

See also Graphics Classes, Image Processing Classes, and Multimedia Classes.

MEMBER FUNCTION DOCUMENTATION

TQImageFormatType::TQImageFormatType () [protected]
Constructs a factory. It automatically registers itself with TQImageDecoder.

TQImageFormatType::~TQImageFormatType () [virtual]
Destroys a factory. It automatically unregisters itself from TQImageDecoder.

TQImageFormat * TQImageFormatType::decoderFor ( const uchar * buffer, int length ) [pure virtual]
Returns a decoder for decoding an image that starts with the bytes in buffer. The length of the data is given in length. This function should only return a decoder if it is certain that the decoder applies to data with the given header. Returns 0 if there is insufficient data in the header to make a positive identification or if the data is not recognized.

const char * TQImageFormatType::formatName () const [pure virtual]
Returns the name of the format supported by decoders from this factory. The string is statically allocated.

SEE ALSO
http://doc.trolltech.com/tqimageformattype.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
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.

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 TQt documentation is provided in HTML format; it is located at $TQTDIR/doc/html and can be read using TQt 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 (tqimageformattype.3qt) and the Qt version (3.3.8).