|
|
Interface to the KDE Image IO library.
Just call KImageIO::registerFormats() to register all extra image formats provided by libkimgio. You will also need to link to this library.
enum Mode {Reading, Writing } |
Possible image file access modes.
Used in various KImageIO static function.
void registerFormats () |
Registers all KImageIO supported formats.
bool canWrite (const QString& type) |
Checks if a special type is supported for writing.
bool canRead (const QString& type) |
Checks if a special type is supported for reading.
QStringList types (Mode mode = Writing) |
Retrieve a list of all KImageIO supported formats.
Parameters:
mode | Tells whether to retrieve modes that can be read or written. |
QString pattern (Mode mode = Reading) |
Retrieve a list of patterns of all KImageIO supported formats.
These patterns can be passed to KFileDialog::getOpenFileName() or KFileDialog::getSaveFileName(), for example.
Parameters:
mode | Tells whether to retrieve modes that can be read or written. |
QString suffix (const QString& type) |
Retrieve the suffix of an image type.
QString type (const QString& filename) |
Retrieve the type of given filename.
QStringList mimeTypes ( Mode _mode = Writing ) |
Retrieve a list of MIME types for all KImageIO supported formats.
Parameters:
mode | Tells whether to retrieve modes that can be read or written. |
bool isSupported ( const QString& _mimeType, Mode _mode = Writing ) |
Test to see whether a MIME type is supported to reading/writing.
QString mimeType ( const QString& _filename ) |
Return the MIME type of _filename
.