|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KImageIO
public class KImageIO
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. ormats: Currently supported formats include:
#include#include int main( String[] args ) { .... KImageIO.registerFormats(); ... // start main program }
KImageIO
,
QPixmap
,
QImage
,
QImageIO
Field Summary | |
---|---|
static int |
Reading
Possible image file access modes. |
static int |
Writing
|
Constructor Summary | |
---|---|
|
KImageIO()
|
protected |
KImageIO(java.lang.Class dummy)
|
Method Summary | |
---|---|
static boolean |
canRead(java.lang.String type)
Checks if a special type is supported for reading. |
static boolean |
canWrite(java.lang.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(java.lang.String _mimeType)
|
static boolean |
isSupported(java.lang.String _mimeType,
int _mode)
Test to see whether a MIME type is supported to reading/writing. |
static java.lang.String |
mimeType(java.lang.String _filename)
Returns the MIME type of _filename. |
static java.util.ArrayList |
mimeTypes()
|
static java.util.ArrayList |
mimeTypes(int mode)
Returns a list of MIME types for all KImageIO supported formats. |
static java.lang.String |
pattern()
|
static java.lang.String |
pattern(int mode)
Returns a list of patterns of all KImageIO supported formats. |
static void |
registerFormats()
Registers all KImageIO supported formats. |
static java.lang.String |
suffix(java.lang.String type)
Returns the suffix of an image type. |
static java.lang.String |
type(java.lang.String filename)
Returns the type of given filename. |
static java.lang.String |
typeForMime(java.lang.String mimeType)
Returns the type of a MIME type. |
static java.util.ArrayList |
types()
|
static java.util.ArrayList |
types(int mode)
Returns a list of all KImageIO supported formats. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int Reading
public static final int Writing
Constructor Detail |
---|
protected KImageIO(java.lang.Class dummy)
public KImageIO()
Method Detail |
---|
public static void registerFormats()
public static boolean canWrite(java.lang.String type)
type
- the type id of the image type
public static boolean canRead(java.lang.String type)
type
- the type id of the image type
public static java.util.ArrayList types(int mode)
mode
- Tells whether to retrieve modes that can be read or written.
public static java.util.ArrayList types()
public static java.lang.String pattern(int mode)
mode
- Tells whether to retrieve modes that can be read or written.
public static java.lang.String pattern()
public static java.lang.String suffix(java.lang.String type)
type
- the type id of the file format
public static java.lang.String typeForMime(java.lang.String mimeType)
mimeType
- the MIME type to search
public static java.lang.String type(java.lang.String filename)
filename
- the filename to check
public static java.util.ArrayList mimeTypes(int mode)
mode
- Tells whether to retrieve modes that can be read or written.
public static java.util.ArrayList mimeTypes()
public static boolean isSupported(java.lang.String _mimeType, int _mode)
_mimeType
- the MIME type to check_mode
- Tells whether to check for reading or writing capabilities
public static boolean isSupported(java.lang.String _mimeType)
public static java.lang.String mimeType(java.lang.String _filename)
_filename.
_filename
- the filename to check
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |