Eneboo - Documentación para desarrolladores
|
The QImageFormatPlugin class provides an abstract base for custom image format plugins. Más...
#include <qimageformatplugin.h>
Métodos públicos | |
QImageFormatPlugin () | |
~QImageFormatPlugin () | |
virtual QStringList | keys () const =0 |
virtual bool | loadImage (const QString &format, const QString &filename, QImage *image) |
virtual bool | saveImage (const QString &format, const QString &filename, const QImage &image) |
virtual bool | installIOHandler (const QString &format)=0 |
QImageFormatPlugin () | |
~QImageFormatPlugin () | |
virtual QStringList | keys () const =0 |
virtual bool | loadImage (const QString &format, const QString &filename, QImage *image) |
virtual bool | saveImage (const QString &format, const QString &filename, const QImage &image) |
virtual bool | installIOHandler (const QString &format)=0 |
The QImageFormatPlugin class provides an abstract base for custom image format plugins.
The image format plugin is a simple plugin interface that makes it easy to create custom image formats that can be used transparently by applications.
Writing an image format plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and installIOHandler(), and exporting the class with the Q_EXPORT_PLUGIN macro. See the Plugins documentation for details.
QImageFormatPlugin::QImageFormatPlugin | ( | ) |
Constructs an image format plugin. This is invoked automatically by the Q_EXPORT_PLUGIN macro.
QImageFormatPlugin::~QImageFormatPlugin | ( | ) |
Destroys the image format plugin.
You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.
QImageFormatPlugin::QImageFormatPlugin | ( | ) |
QImageFormatPlugin::~QImageFormatPlugin | ( | ) |
Installs a QImageIO image I/O handler for the image format format.
Implementado en JPEGFormat, MNGFormat y PNGFormat.
Implementado en JPEGFormat, MNGFormat y PNGFormat.
QStringList QImageFormatPlugin::keys | ( | ) | const [pure virtual] |
Returns the list of image formats this plugin supports.
Implementado en JPEGFormat, MNGFormat y PNGFormat.
virtual QStringList QImageFormatPlugin::keys | ( | ) | const [pure virtual] |
Implementado en JPEGFormat, MNGFormat y PNGFormat.
bool QImageFormatPlugin::loadImage | ( | const QString & | format, |
const QString & | filename, | ||
QImage * | image | ||
) | [virtual] |
Reimplementado en JPEGFormat, MNGFormat y PNGFormat.
virtual bool QImageFormatPlugin::loadImage | ( | const QString & | format, |
const QString & | filename, | ||
QImage * | image | ||
) | [virtual] |
Reimplementado en JPEGFormat, MNGFormat y PNGFormat.
bool QImageFormatPlugin::saveImage | ( | const QString & | format, |
const QString & | filename, | ||
const QImage & | image | ||
) | [virtual] |
Reimplementado en JPEGFormat, MNGFormat y PNGFormat.
virtual bool QImageFormatPlugin::saveImage | ( | const QString & | format, |
const QString & | filename, | ||
const QImage & | image | ||
) | [virtual] |
Reimplementado en JPEGFormat, MNGFormat y PNGFormat.