Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos
Referencia de la Clase QImageFormatType

The QImageFormatType class is a factory that makes QImageFormat objects. Más...

#include <qasyncimageio.h>

Diagrama de herencias de QImageFormatType
QMNGFormatType QPNGFormatType

Lista de todos los miembros.

Métodos públicos

virtual ~QImageFormatType ()
virtual QImageFormatdecoderFor (const uchar *buffer, int length)=0
virtual const char * formatName () const =0
virtual ~QImageFormatType ()
virtual QImageFormatdecoderFor (const uchar *buffer, int length)=0
virtual const char * formatName () const =0

Métodos protegidos

 QImageFormatType ()
 QImageFormatType ()

Descripción detallada

The QImageFormatType class is a factory that makes QImageFormat objects.

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


Documentación del constructor y destructor

QImageFormatType::~QImageFormatType ( ) [virtual]

Destroys a factory. It automatically unregisters itself from QImageDecoder.

QImageFormatType::QImageFormatType ( ) [protected]

Constructs a factory. It automatically registers itself with QImageDecoder.

virtual QImageFormatType::~QImageFormatType ( ) [virtual]
QImageFormatType::QImageFormatType ( ) [protected]

Documentación de las funciones miembro

QImageFormat * QImageFormatType::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.

virtual QImageFormat* QImageFormatType::decoderFor ( const uchar buffer,
int  length 
) [pure virtual]
virtual const char* QImageFormatType::formatName ( ) const [pure virtual]
const char * QImageFormatType::formatName ( ) const [pure virtual]

Returns the name of the format supported by decoders from this factory. The string is statically allocated.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'