14 TDE_EXPORT
void kimgio_g3_read( TQImageIO *io )
17 TIFF *tiff = TIFFOpen(TQFile::encodeName(io->fileName()),
"r");
24 if( TIFFGetField( tiff, TIFFTAG_IMAGEWIDTH, &width ) != 1
25 || TIFFGetField( tiff, TIFFTAG_IMAGELENGTH, &height ) != 1 )
27 scanlength = TIFFScanlineSize(tiff);
29 TQImage image(width, height, 1, 0, TQImage::BigEndian);
31 if (image.isNull() || scanlength != image.bytesPerLine())
37 for (uint32 y=0; y < height; y++)
38 TIFFReadScanline(tiff, image.scanLine(y), y);
47 TDE_EXPORT
void kimgio_g3_write(TQImageIO *)