Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Timothy Pearson
ed99a30644
|
pirms 11 gadiem | |
---|---|---|
.. | ||
AUTHORS | pirms 15 gadiem | |
CMakeLists.txt | pirms 11 gadiem | |
ChangeLog | pirms 15 gadiem | |
Mainpage.dox | pirms 15 gadiem | |
Makefile.am | pirms 11 gadiem | |
README | pirms 11 gadiem | |
bmp.kimgio | pirms 15 gadiem | |
configure.in.in | pirms 15 gadiem | |
dds.cpp | pirms 11 gadiem | |
dds.h | pirms 14 gadiem | |
dds.kimgio | pirms 15 gadiem | |
eps.cpp | pirms 11 gadiem | |
eps.h | pirms 14 gadiem | |
eps.kimgio | pirms 15 gadiem | |
exr.cpp | pirms 11 gadiem | |
exr.h | pirms 14 gadiem | |
exr.kimgio | pirms 15 gadiem | |
g3.kimgio | pirms 15 gadiem | |
g3r.cpp | pirms 14 gadiem | |
g3r.h | pirms 14 gadiem | |
gif.kimgio | pirms 15 gadiem | |
gimp.h | pirms 11 gadiem | |
hdr.cpp | pirms 11 gadiem | |
hdr.h | pirms 14 gadiem | |
hdr.kimgio | pirms 15 gadiem | |
ico.cpp | pirms 13 gadiem | |
ico.h | pirms 14 gadiem | |
ico.kimgio | pirms 15 gadiem | |
jp2.cpp | pirms 11 gadiem | |
jp2.h | pirms 14 gadiem | |
jp2.kimgio | pirms 15 gadiem | |
jpeg.kimgio | pirms 15 gadiem | |
mng.kimgio | pirms 15 gadiem | |
pbm.kimgio | pirms 15 gadiem | |
pcx.cpp | pirms 13 gadiem | |
pcx.h | pirms 13 gadiem | |
pcx.kimgio | pirms 15 gadiem | |
pgm.kimgio | pirms 15 gadiem | |
png.kimgio | pirms 15 gadiem | |
ppm.kimgio | pirms 15 gadiem | |
psd.cpp | pirms 13 gadiem | |
psd.h | pirms 14 gadiem | |
psd.kimgio | pirms 15 gadiem | |
rgb.cpp | pirms 13 gadiem | |
rgb.h | pirms 13 gadiem | |
rgb.kimgio | pirms 15 gadiem | |
tga.cpp | pirms 13 gadiem | |
tga.h | pirms 14 gadiem | |
tga.kimgio | pirms 15 gadiem | |
tiff.kimgio | pirms 15 gadiem | |
tiffr.cpp | pirms 13 gadiem | |
tiffr.h | pirms 14 gadiem | |
xbm.kimgio | pirms 15 gadiem | |
xcf.cpp | pirms 13 gadiem | |
xcf.h | pirms 13 gadiem | |
xcf.kimgio | pirms 15 gadiem | |
xpm.kimgio | pirms 15 gadiem | |
xv.kimgio | pirms 15 gadiem | |
xview.cpp | pirms 13 gadiem | |
xview.h | pirms 14 gadiem |
README
KDE Image I/O library --------------------- This library allows applications that use the Qt library (i.e. QImageIO, QImage, 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.