• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

Enumerations | Functions
KImageIO Namespace Reference

Enumerations

enum  Mode { Reading, Writing }
 

Functions

bool isSupported (const QString &mimeType, Mode mode=Writing)
 
QStringList mimeTypes (Mode mode=Writing)
 
QString pattern (Mode mode=Reading)
 
QStringList typeForMime (const QString &mimeType)
 
QStringList types (Mode mode=Writing)
 

Detailed Description

Methods to get information about image format names and the corresponding mime type.

Also, you can get information about supported image types without loading all the imageformat plugins.

The image processing backends are written as image handlers compatible with the QImageIOHandler format. The backends are Qt imageformat plugins. 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>

Enumeration Type Documentation

enum KImageIO::Mode

Possible image file access modes.

Used in various KImageIO static function.

Enumerator
Reading 
Writing 

Definition at line 53 of file kimageio.h.

Function Documentation

bool KImageIO::isSupported ( const QString &  mimeType,
Mode  mode = Writing 
)

Test to see whether a MIME type is supported to reading/writing.

Parameters
_mimeTypethe MIME type to check
_modeTells whether to check for reading or writing capabilities
Returns
true if the type is supported

Definition at line 96 of file kimageio.cpp.

QStringList KImageIO::mimeTypes ( Mode  mode = Writing)

Returns a list of MIME types for all KImageIO supported formats.

Parameters
modeTells whether to retrieve modes that can be read or written.
Returns
a list if MIME types of the supported formats

Definition at line 64 of file kimageio.cpp.

QString KImageIO::pattern ( Mode  mode = Reading)

Returns a list of patterns of all KImageIO supported formats.

kimgio.h – Implementation of interface to the KDE Image IO library.

These patterns can be passed to KFileDialog::getOpenFileName() or KFileDialog::getSaveFileName(), for example.

Parameters
modeTells whether to retrieve modes that can be read or written.
Returns
a space-separated list of file globs that describe the supported formats

Copyright (c) 1998 Sirtaj Singh Kang taj@k.nosp@m.de.o.nosp@m.rg

This library is distributed under the conditions of the GNU LGPL.

Definition at line 16 of file kimageio.cpp.

QStringList KImageIO::typeForMime ( const QString &  mimeType)

Returns the type of a MIME type.

Parameters
mimeTypethe MIME type to search
Returns
type id(s) of the MIME type or QStringList() if the MIME type is not supported

Definition at line 51 of file kimageio.cpp.

QStringList KImageIO::types ( Mode  mode = Writing)

Returns a list of all KImageIO supported formats.

Parameters
modeTells whether to retrieve modes that can be read or written.
Returns
a list of the type ids

Definition at line 82 of file kimageio.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal