1<!-- Creator : groff version 1.19.2 --> 2<!-- CreationDate: Mon Jan 2 17:41:41 2006 --> 3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 4"http://www.w3.org/TR/html4/loose.dtd"> 5<html> 6<head> 7<meta name="generator" content="groff -Thtml, see www.gnu.org"> 8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> 9<meta name="Content-Style" content="text/css"> 10<style type="text/css"> 11 p { margin-top: 0; margin-bottom: 0; } 12 pre { margin-top: 0; margin-bottom: 0; } 13 table { margin-top: 0; margin-bottom: 0; } 14</style> 15<title>TIFFReadRawTile</title> 16 17</head> 18<body> 19 20<h1 align=center>TIFFReadRawTile</h1> 21 22<a href="#NAME">NAME</a><br> 23<a href="#SYNOPSIS">SYNOPSIS</a><br> 24<a href="#DESCRIPTION">DESCRIPTION</a><br> 25<a href="#RETURN VALUES">RETURN VALUES</a><br> 26<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br> 27<a href="#SEE ALSO">SEE ALSO</a><br> 28 29<hr> 30 31 32<a name="NAME"></a> 33<h2>NAME</h2> 34 35 36 37<p style="margin-left:11%; margin-top: 1em">TIFFReadRawTile 38− return an undecoded tile of data from an open 39<small>TIFF</small> file</p> 40 41<a name="SYNOPSIS"></a> 42<h2>SYNOPSIS</h2> 43 44 45<p style="margin-left:11%; margin-top: 1em"><b>#include 46<tiffio.h></b></p> 47 48<p style="margin-left:11%; margin-top: 1em"><b>tsize_t 49TIFFReadRawTile(TIFF *</b><i>tif</i><b>, ttile_t</b> 50<i>tile</i><b>, tdata_t</b> <i>buf</i><b>, tsize_t</b> 51<i>size</i><b>)</b></p> 52 53<a name="DESCRIPTION"></a> 54<h2>DESCRIPTION</h2> 55 56 57<p style="margin-left:11%; margin-top: 1em">Read the 58contents of the specified tile into the (user supplied) data 59buffer. Note that the value of <i>tile</i> is a 60‘‘raw tile number.’’ That is, the 61caller must take into account whether or not the data is 62organized in separate planes (<i>PlanarConfiguration</i>=2). 63<i>TIFFComputeTile</i> automatically does this when 64converting an (x,y,z,sample) coordinate quadruple to a tile 65number. To read a full tile of data the data buffer should 66typically be at least as large as the value returned by 67<i>TIFFTileSize</i>.</p> 68 69<a name="RETURN VALUES"></a> 70<h2>RETURN VALUES</h2> 71 72 73<p style="margin-left:11%; margin-top: 1em">The actual 74number of bytes of data that were placed in <i>buf</i> is 75returned; <i>TIFFReadEncodedTile</i> returns −1 if an 76error was encountered.</p> 77 78<a name="DIAGNOSTICS"></a> 79<h2>DIAGNOSTICS</h2> 80 81 82<p style="margin-left:11%; margin-top: 1em">All error 83messages are directed to the <b>TIFFError</b>(3TIFF) 84routine.</p> 85 86<a name="SEE ALSO"></a> 87<h2>SEE ALSO</h2> 88 89 90 91<p style="margin-left:11%; margin-top: 1em"><b>TIFFOpen</b>(3TIFF), 92<b>TIFFReadEncodedTile</b>(3TIFF), 93<b>TIFFReadTile</b>(3TIFF), <b>TIFFTileSize</b>(3TIFF), 94<b>libtiff</b>(3TIFF)</p> 95 96<p style="margin-left:11%; margin-top: 1em">Libtiff library 97home page: <b>http://www.remotesensing.org/libtiff/</b></p> 98<hr> 99</body> 100</html> 101