#include <kimageio.h>
Public Types | |
| enum | Mode |
Static Public Methods | |
| void | registerFormats () |
| bool | canWrite (const QString &type) |
| bool | canRead (const QString &type) |
| QStringList | types (Mode mode=Writing) |
| QString | pattern (Mode mode=Reading) |
| QString | suffix (const QString &type) |
| QString | typeForMime (const QString &mimeType) |
| QString | type (const QString &filename) |
| QStringList | mimeTypes (Mode _mode=Writing) |
| bool | isSupported (const QString &_mimeType, Mode _mode=Writing) |
| QString | mimeType (const QString &_filename) |
This library allows KDE applications to read and write images in a variety of formats, transparently via the QImage and QPixmap load and save methods.
The image processing backends are written as image handlers compatible with the QImageIO handler format. The backends are loaded on demand when a particular format is requested. Each format can be identified by a unique type id string.
@sect Formats
Currently supported formats include:
Simply call the KImageIO::registerFormats() static method declared in kimgageio.h.
@sect Example
include<qpixmap.h>
include<kimgio.h>
int main( int argc, char **argv )
{
....
KImageIO::registerFormats();
... // start main program
}
Definition at line 62 of file kimageio.h.
|
|
Possible image file access modes. Used in various KImageIO static function. Definition at line 70 of file kimageio.h. |
|
|
Checks if a special type is supported for reading.
|
|
|
Checks if a special type is supported for writing.
|
|
||||||||||||
|
Test to see whether a MIME type is supported to reading/writing.
|
|
|
Returns the MIME type of
|
|
|
Returns a list of MIME types for all KImageIO supported formats.
|
|
|
Returns a list of patterns of all KImageIO supported formats. These patterns can be passed to KFileDialog::getOpenFileName() or KFileDialog::getSaveFileName(), for example.
|
|
|
Registers all KImageIO supported formats. |
|
|
Returns the suffix of an image type.
|
|
|
Returns the type of given filename.
|
|
|
Returns the type of a MIME type.
|
|
|
Returns a list of all KImageIO supported formats.
|
1.2.18