You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michele Calgaro
bdb1b50208
|
2 weeks ago | |
---|---|---|
.. | ||
AUTHORS | 15 years ago | |
CMakeLists.txt | 7 months ago | |
ChangeLog | 15 years ago | |
Mainpage.dox | 4 years ago | |
Makefile.am | 6 years ago | |
README | 1 year ago | |
bmp.kimgio | 7 months ago | |
configure.in.in | 15 years ago | |
dds.cpp | 8 months ago | |
dds.h | 15 years ago | |
dds.kimgio | 7 months ago | |
eps.cpp | 8 months ago | |
eps.h | 15 years ago | |
eps.kimgio | 7 months ago | |
exr.cpp | 2 weeks ago | |
exr.h | 15 years ago | |
exr.kimgio | 7 months ago | |
g3.kimgio | 7 months ago | |
g3r.cpp | 8 months ago | |
g3r.h | 15 years ago | |
gif.kimgio | 7 months ago | |
gimp.h | 4 years ago | |
hdr.cpp | 8 months ago | |
hdr.h | 15 years ago | |
hdr.kimgio | 7 months ago | |
ico.cpp | 8 months ago | |
ico.h | 15 years ago | |
ico.kimgio | 7 months ago | |
jp2.cpp | 3 months ago | |
jp2.h | 15 years ago | |
jp2.kimgio | 7 months ago | |
jpeg.kimgio | 7 months ago | |
mng.kimgio | 7 months ago | |
pbm.kimgio | 7 months ago | |
pcx.cpp | 8 months ago | |
pcx.h | 7 months ago | |
pcx.kimgio | 7 months ago | |
pgm.kimgio | 7 months ago | |
png.kimgio | 7 months ago | |
ppm.kimgio | 7 months ago | |
psd.cpp | 13 years ago | |
psd.h | 6 months ago | |
psd.kimgio | 7 months ago | |
rgb.cpp | 8 months ago | |
rgb.h | 13 years ago | |
rgb.kimgio | 7 months ago | |
tga.cpp | 8 months ago | |
tga.h | 15 years ago | |
tga.kimgio | 7 months ago | |
tiff.kimgio | 7 months ago | |
tiffr.cpp | 3 months ago | |
tiffr.h | 15 years ago | |
webp.cpp | 7 months ago | |
webp.h | 7 months ago | |
webp.kimgio | 7 months ago | |
xbm.kimgio | 7 months ago | |
xcf.cpp | 8 months ago | |
xcf.h | 1 year ago | |
xcf.kimgio | 7 months ago | |
xpm.kimgio | 7 months ago | |
xv.kimgio | 7 months ago | |
xview.cpp | 8 months ago | |
xview.h | 15 years ago |
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.