KImageIO Class Reference
Interface to the KDE Image IO plugin architecture. More...
#include <kimageio.h>
Public Types | |
enum | Mode { Reading, Writing } |
Possible image file access modes. More... | |
Static Public Member Functions | |
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) |
Returns a list of all KImageIO supported formats. | |
QString | pattern (Mode mode=Reading) |
Returns a list of patterns of all KImageIO supported formats. | |
QString | suffix (const QString &type) |
Returns the suffix of an image type. | |
QString | typeForMime (const QString &mimeType) |
Returns the type of a MIME type. | |
QString | type (const QString &filename) |
Returns the type of given filename. | |
QStringList | mimeTypes (Mode _mode=Writing) |
Returns a list of MIME types for all KImageIO supported formats. | |
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) |
Returns the MIME type of _filename . |
Detailed Description
Interface to the KDE Image IO plugin architecture.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.
Formats
Currently supported formats include:
Usage
Simply call the KImageIO::registerFormats() static method declared in kimgageio.h.
Example
Definition at line 62 of file kimageio.h.
Member Enumeration Documentation
|
Possible image file access modes. Used in various KImageIO static function. Definition at line 70 of file kimageio.h. |
Member Function Documentation
|
Registers all KImageIO supported formats.
Definition at line 378 of file kimageio.cpp. |
|
Checks if a special type is supported for writing.
Definition at line 392 of file kimageio.cpp. References QValueList::ConstIterator(). |
|
Checks if a special type is supported for reading.
Definition at line 411 of file kimageio.cpp. References QValueList::ConstIterator(). |
|
Returns a list of all KImageIO supported formats.
Definition at line 430 of file kimageio.cpp. References QValueList::ConstIterator(), and types(). Referenced by types(). |
|
Returns a list of patterns of all KImageIO supported formats. These patterns can be passed to KFileDialog::getOpenFileName() or KFileDialog::getSaveFileName(), for example.
Definition at line 384 of file kimageio.cpp. |
|
Returns the suffix of an image type.
Definition at line 450 of file kimageio.cpp. References QValueList::ConstIterator(). Referenced by type(). |
|
Returns the type of a MIME type.
Definition at line 469 of file kimageio.cpp. References QValueList::ConstIterator(). |
|
Returns the type of given filename.
Definition at line 488 of file kimageio.cpp. References QValueList::ConstIterator(), QString::findRev(), QString::mid(), and suffix(). |
|
Returns a list of MIME types for all KImageIO supported formats.
Definition at line 511 of file kimageio.cpp. References QValueList::ConstIterator(). Referenced by KFileDialog::getImageOpenURL(). |
|
Test to see whether a MIME type is supported to reading/writing.
Definition at line 533 of file kimageio.cpp. References QValueList::ConstIterator(). |
|
Returns the MIME type of
Definition at line 556 of file kimageio.cpp. References KMimeType::findByURL(). |
The documentation for this class was generated from the following files: