Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Michele Calgaro
8f539c5a7c
|
il y a 2 mois | |
---|---|---|
.. | ||
AUTHORS | il y a 15 ans | |
CMakeLists.txt | il y a 2 mois | |
ChangeLog | il y a 15 ans | |
Mainpage.dox | il y a 4 ans | |
Makefile.am | il y a 6 ans | |
README | il y a 7 mois | |
bmp.kimgio | il y a 15 ans | |
configure.in.in | il y a 15 ans | |
dds.cpp | il y a 7 mois | |
dds.h | il y a 14 ans | |
dds.kimgio | il y a 15 ans | |
eps.cpp | il y a 11 ans | |
eps.h | il y a 14 ans | |
eps.kimgio | il y a 15 ans | |
exr.cpp | il y a 7 mois | |
exr.h | il y a 14 ans | |
exr.kimgio | il y a 15 ans | |
g3.kimgio | il y a 15 ans | |
g3r.cpp | il y a 14 ans | |
g3r.h | il y a 14 ans | |
gif.kimgio | il y a 15 ans | |
gimp.h | il y a 4 ans | |
hdr.cpp | il y a 7 mois | |
hdr.h | il y a 14 ans | |
hdr.kimgio | il y a 15 ans | |
ico.cpp | il y a 5 mois | |
ico.h | il y a 14 ans | |
ico.kimgio | il y a 15 ans | |
jp2.cpp | il y a 7 mois | |
jp2.h | il y a 14 ans | |
jp2.kimgio | il y a 15 ans | |
jpeg.kimgio | il y a 15 ans | |
mng.kimgio | il y a 15 ans | |
pbm.kimgio | il y a 15 ans | |
pcx.cpp | il y a 7 mois | |
pcx.h | il y a 7 mois | |
pcx.kimgio | il y a 15 ans | |
pgm.kimgio | il y a 15 ans | |
png.kimgio | il y a 15 ans | |
ppm.kimgio | il y a 15 ans | |
psd.cpp | il y a 13 ans | |
psd.h | il y a 14 ans | |
psd.kimgio | il y a 15 ans | |
rgb.cpp | il y a 7 mois | |
rgb.h | il y a 13 ans | |
rgb.kimgio | il y a 15 ans | |
tga.cpp | il y a 7 mois | |
tga.h | il y a 14 ans | |
tga.kimgio | il y a 15 ans | |
tiff.kimgio | il y a 15 ans | |
tiffr.cpp | il y a 13 ans | |
tiffr.h | il y a 14 ans | |
xbm.kimgio | il y a 15 ans | |
xcf.cpp | il y a 5 mois | |
xcf.h | il y a 7 mois | |
xcf.kimgio | il y a 15 ans | |
xpm.kimgio | il y a 15 ans | |
xv.kimgio | il y a 15 ans | |
xview.cpp | il y a 7 mois | |
xview.h | il y a 14 ans |
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.