diff --git a/html/libtiff.html b/html/libtiff.html index 56535d97..d6b5eab3 100644 --- a/html/libtiff.html +++ b/html/libtiff.html @@ -518,9 +518,9 @@         TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &imagelength);
        buf = _TIFFmalloc(TIFFScanlineSize(tif));
        for (row = 0; row < imagelength; row++)
-             tiffreadscanline(tif, buf, row);
-         _tifffree(buf);
-         tiffclose(tif);
+             TIFFReadScanline(tif, buf, row, 0);
+         _TIFFfree(buf);
+         TIFFClose(tif);
    }
}

@@ -547,17 +547,17 @@         buf = _TIFFmalloc(TIFFScanlineSize(tif));
        if (config == PLANARCONFIG_CONTIG) {
            for (row = 0; row < imagelength; row++)
-                 tiffreadscanline(tif, buf, row);
+                 TIFFReadScanline(tif, buf, row, 0);
        } else if (config == planarconfig_separate) {
            uint16 s, nsamples;
            
            tiffgetfield(tif, tifftag_samplesperpixel, &nsamples);
            for (s = 0; s < nsamples; s++)
                for (row = 0; row < imagelength; row++)
-                     tiffreadscanline(tif, buf, row, s);
+                     TIFFReadScanline(tif, buf, row, s);
        }
-         _tifffree(buf);
-         tiffclose(tif);
+         _TIFFfree(buf);
+         TIFFClose(tif);
    }
}

@@ -568,7 +568,7 @@

            for (row = 0; row < imagelength; row++)
                for (s = 0; s < nsamples; s++)
-                     tiffreadscanline(tif, buf, row, s);
+                     TIFFReadScanline(tif, buf, row, s);

...then problems would arise if RowsPerStrip was not one @@ -601,8 +601,8 @@         buf = _TIFFmalloc(TIFFStripSize(tif));
        for (strip = 0; strip < tiffnumberofstrips(tif); strip++)
            tiffreadencodedstrip(tif, strip, buf, (tsize_t) -1);
-         _tifffree(buf);
-         tiffclose(tif);
+         _TIFFfree(buf);
+         TIFFClose(tif);
    }
}

@@ -702,8 +702,8 @@         for (y = 0; y < imagelength; y += tilelength)
            for (x = 0; x < imagewidth; x += tilewidth)
                tiffreadtile(tif, buf, x, y, 0);
-         _tifffree(buf);
-         tiffclose(tif);
+         _TIFFfree(buf);
+         TIFFClose(tif);
    }
}

@@ -729,8 +729,8 @@         buf = _TIFFmalloc(TIFFTileSize(tif));
        for (tile = 0; tile < tiffnumberoftiles(tif); tile++)
            tiffreadencodedtile(tif, tile, buf, (tsize_t) -1);
-         _tifffree(buf);
-         tiffclose(tif);
+         _TIFFfree(buf);
+         TIFFClose(tif);
    }
}