Factory that makes QImageFormat objects. More...
#include <qasyncimageio.h>
Inherited by QGIFFormatType.
While the QImageIO class allows for complete loading of images, QImageFormatType allows for incremental loading of images.
New image file formats are installed by creating objects of derived classes of QImageFormatType. They must implement decoderFor() and formatName().
QImageFormatType is a very simple class. Its only task is to recognize image data in some format and make a new object, subclassed from QImageFormat, which can decode that format.
The factories for formats built into Qt (currently only GIF) 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, thus you can override current and future built-in formats.
[protected]
Creates a factory. It automatically registers itself with QImageDecoder.
[virtual]
Destroys a factory. It automatically unregisters itself from QImageDecoder.
[virtual]
Returns a decoder for decoding an image which starts with the give bytes. This function should only return a decoder if it is definate 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.
[virtual]
Returns the name of the format supported by decoders from this factory. The string is statically allocated.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.
It was generated from the following files:
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.42
|