Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Michele Calgaro
8f539c5a7c
|
vor 1 Monat | |
---|---|---|
.. | ||
AUTHORS | vor 15 Jahren | |
CMakeLists.txt | vor 1 Monat | |
ChangeLog | vor 15 Jahren | |
Mainpage.dox | vor 4 Jahren | |
Makefile.am | vor 6 Jahren | |
README | vor 7 Monaten | |
bmp.kimgio | vor 15 Jahren | |
configure.in.in | vor 15 Jahren | |
dds.cpp | vor 7 Monaten | |
dds.h | vor 14 Jahren | |
dds.kimgio | vor 15 Jahren | |
eps.cpp | vor 11 Jahren | |
eps.h | vor 14 Jahren | |
eps.kimgio | vor 15 Jahren | |
exr.cpp | vor 7 Monaten | |
exr.h | vor 14 Jahren | |
exr.kimgio | vor 15 Jahren | |
g3.kimgio | vor 15 Jahren | |
g3r.cpp | vor 14 Jahren | |
g3r.h | vor 14 Jahren | |
gif.kimgio | vor 15 Jahren | |
gimp.h | vor 4 Jahren | |
hdr.cpp | vor 7 Monaten | |
hdr.h | vor 14 Jahren | |
hdr.kimgio | vor 15 Jahren | |
ico.cpp | vor 5 Monaten | |
ico.h | vor 14 Jahren | |
ico.kimgio | vor 15 Jahren | |
jp2.cpp | vor 7 Monaten | |
jp2.h | vor 14 Jahren | |
jp2.kimgio | vor 15 Jahren | |
jpeg.kimgio | vor 15 Jahren | |
mng.kimgio | vor 15 Jahren | |
pbm.kimgio | vor 15 Jahren | |
pcx.cpp | vor 7 Monaten | |
pcx.h | vor 7 Monaten | |
pcx.kimgio | vor 15 Jahren | |
pgm.kimgio | vor 15 Jahren | |
png.kimgio | vor 15 Jahren | |
ppm.kimgio | vor 15 Jahren | |
psd.cpp | vor 13 Jahren | |
psd.h | vor 14 Jahren | |
psd.kimgio | vor 15 Jahren | |
rgb.cpp | vor 7 Monaten | |
rgb.h | vor 13 Jahren | |
rgb.kimgio | vor 15 Jahren | |
tga.cpp | vor 7 Monaten | |
tga.h | vor 14 Jahren | |
tga.kimgio | vor 15 Jahren | |
tiff.kimgio | vor 15 Jahren | |
tiffr.cpp | vor 13 Jahren | |
tiffr.h | vor 14 Jahren | |
xbm.kimgio | vor 15 Jahren | |
xcf.cpp | vor 5 Monaten | |
xcf.h | vor 7 Monaten | |
xcf.kimgio | vor 15 Jahren | |
xpm.kimgio | vor 15 Jahren | |
xv.kimgio | vor 15 Jahren | |
xview.cpp | vor 7 Monaten | |
xview.h | vor 14 Jahren |
README
KDE Image I/O library --------------------- This library allows applications that use the Qt library (i.e. QImageIO, TQImage, QPixmap and friends) to read and write images in extra formats. Current formats include: JPEG <read> <write> JPEG2000 <read> <write> XV <read> <write> EPS <read> <write> NETPBM <incomplete> PNG <read> <write, only with newer libraries> TIFF <read> TGA <read> <write> PCX <read> <write> SGI <read> <write> (images/x-rgb: *.bw, *.rgb, *.rgba, *.sgi) DDS <read> XCF <read> (Some example files are in kdenonbeta/kimgio_examples.) To use these formats, you only need to: 1. link the application with the libtdeio library 2. Include the <kimageio.h> header 3. call KImageIO::registerFormats() once, somewhere in your code before you load an image. Writing handlers ---------------- 0. Please read the documentation for the QImageIO class in the Qt documentation. 1. When writing handlers, there is a function naming convention; suppose, for example, we were writing PNG read and write handlers, we would name them void kimgio_png_read ( QImageIO * ); void kimgio_png_write( QImageIO * ); ie kimgio_<format>_<read/write> This should reduce the chance of identifier clashes with other code. 2. Remember that a given KDE application may try to load dozens of images at once such as when loading icons, or creating thumbnails. Also, it may well be loading them over a network connection. Therefore, - Avoid creating temporary files or allocating too much memory when decoding and encoding. Especially try to avoid firing off external programs. - Don't assume that the IODevice which is the source or target of the image data is pointing to a file on the local filesystem. Use the IODevice methods to read and write image data. - Check for file corruption or premature end of the image, especially before using values read from the file e.g. for memory allocations. 3. If you only have either a reader or the writer for a particular format, don't use NULL in QImageIO::defineIOHandler. Instead, write a stub function for the unimplemented handler which displays a message on standard output. This prevents kimgio-using programs dumping core when attempting to call the unimplemented handler. Yours in good faith and pedantry, Sirtaj Singh Kang <taj@kde.org>, 23 September 1998.