KImageIO Class Reference
Interface to the KDE Image IO plugin architecture. More...
#include <kimageio.h>
Public Types | |
enum | Mode { Reading, Writing } |
Static Public Member Functions | |
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) |
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:
- BMP <read> <write>
- EPS <read> <write>
- EXR <read>
- G3 <read>
- GIF <read>
- ICO <read>
- JP2 <read> <write>
- JPEG <read> <write>
- NETPBM <read> <write>
- PCX <read> <write>
- PNG <read> <write, only with newer libraries>
- TGA <read> <write>
- TIFF <read>
- XBM <read> <write>
- XPM <read> <write>
- XV <read> <write>
Simply call the KImageIO::registerFormats() static method declared in kimageio.h.
Example:
#include<qpixmap.h> #include<kimgio.h> int main( int argc, char **argv ) { .... KImageIO::registerFormats(); ... // start main program }
- Author:
- Sirtaj Singh Kang
- Version:
- Id
- kimageio.h,v 1.15 2004/02/01 04:40:41 bhards Exp
Definition at line 70 of file kimageio.h.
Member Enumeration Documentation
|
Possible image file access modes. Used in various KImageIO static function. Definition at line 78 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.
|
|
Checks if a special type is supported for reading.
|
|
Returns a list of all KImageIO supported formats.
References 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.
|
|
Returns the suffix of an image type.
Referenced by type(). |
|
Returns the type of a MIME type.
|
|
Returns the type of given filename.
References suffix(). |
|
Returns a list of MIME types for all KImageIO supported formats.
Referenced by KFileDialog::getImageOpenURL(). |
|
Test to see whether a MIME type is supported to reading/writing.
|
|
Returns the MIME type of
References KMimeType::findByURL(). |
The documentation for this class was generated from the following files: