org.kde.koala
public class KImageIO extends Object implements QtSupport
#include#include int main( String[] args ) { .... KImageIO.registerFormats(); ... // start main program }
See Also: KImageIO org.kde.qt.QPixmap org.kde.qt.QImage org.kde.qt.QImageIO
UNKNOWN: Interface to the KDE Image IO plugin architecture.
Field Summary | |
---|---|
static int | Reading
Possible image file access modes.
|
static int | Writing |
Constructor Summary | |
---|---|
protected | KImageIO(Class dummy) |
KImageIO() |
Method Summary | |
---|---|
static boolean | canRead(String type)
Checks if a special type is supported for reading. |
static boolean | canWrite(String type)
Checks if a special type is supported for writing. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static boolean | isSupported(String _mimeType, int _mode)
Test to see whether a MIME type is supported to reading/writing. |
static boolean | isSupported(String _mimeType) |
static String | mimeType(String _filename)
Returns the MIME type of _filename. |
static ArrayList | mimeTypes(int mode)
Returns a list of MIME types for all KImageIO supported formats. |
static ArrayList | mimeTypes() |
static String | pattern(int mode)
Returns a list of patterns of all KImageIO supported formats.
|
static String | pattern() |
static void | registerFormats()
Registers all KImageIO supported formats. |
static String | suffix(String type)
Returns the suffix of an image type. |
static String | type(String filename)
Returns the type of given filename. |
static String | typeForMime(String mimeType)
Returns the type of a MIME type. |
static ArrayList | types(int mode)
Returns a list of all KImageIO supported formats. |
static ArrayList | types() |
UNKNOWN: Possible image file access modes.
Parameters: type the type id of the image type
Returns: true if the image format can be read
UNKNOWN: Checks if a special type is supported for reading.
Parameters: type the type id of the image type
Returns: true if the image format can be written
UNKNOWN: Checks if a special type is supported for writing.
Parameters: _mimeType the MIME type to check _mode Tells whether to check for reading or writing capabilities
Returns: true if the type is supported
UNKNOWN: Test to see whether a MIME type is supported to reading/writing.
_filename.
Parameters: _filename the filename to check
Returns: the MIME type of the file, or null
UNKNOWN: Returns the MIME type of _filename.
Parameters: mode Tells whether to retrieve modes that can be read or written.
Returns: a list if MIME types of the supported formats
UNKNOWN: Returns a list of MIME types for all KImageIO supported formats.
Parameters: mode Tells whether to retrieve modes that can be read or written.
Returns: a space-separated list of file globs that describe the supported formats
UNKNOWN: Returns a list of patterns of all KImageIO supported formats.
UNKNOWN: Registers all KImageIO supported formats.
Parameters: type the type id of the file format
Returns: the suffix of the file format or null if it does not exist
UNKNOWN: Returns the suffix of an image type.
Parameters: filename the filename to check
Returns: if the file name's suffix is known the type id of the file type, otherwise null
UNKNOWN: Returns the type of given filename.
Parameters: mimeType the MIME type to search
Returns: type id of the MIME type or null if the MIME type is not supported
UNKNOWN: Returns the type of a MIME type.
Parameters: mode Tells whether to retrieve modes that can be read or written.
Returns: a list of the type ids
UNKNOWN: Returns a list of all KImageIO supported formats.