;tiffclose(tif);<br>
    &nbsp;&nbsp;&nbsp;&nbsp;}<br>
    }</tt>
  </p>
  <p>
    (once again, we assume samples are packed contiguously.)
  </p>
  <p>
    Alternatively a direct interface to the low-level data is provided
    a la strips.  Tiles can be read with
    <tt>TIFFReadEncodedTile</tt> or <tt>TIFFReadRawTile</tt>,
    and written with <tt>TIFFWriteEncodedTile</tt> or
    <tt>TIFFWriteRawTile</tt>. For example, to read all the tiles in an image:
  </p>
  <p style="margin-left: 40px">
    <tt>#incl