TIFFComputeStrip(3T)

NAME
TIFFComputeStrip, TIFFNumberOfStrips - strip-related utility routines

SYNOPSIS
#include <tiffio.h>
u_int TIFFComputeStrip(TIFF* tif, u_long row, u_int sample)
u_int TIFFNumberOfStrips(TIFF* tif)

DESCRIPTION
TIFFComputeStrip() returns the strip that contains the specified coordinates. A valid strip is always returned; out-of-range coordinate values are clamped to the bounds of the image. The row parameter is always used in calculating a strip. The sample parameter is used only if data are organized in separate planes (PlanarConfiguration=2).

TIFFNumberOfStrips() returns the number of strips in the image.

DIAGNOSTICS
None.

SEE ALSO
intro(3T), TIFFReadEncodedStrip(3T), TIFFReadRawStrip(3T), TIFFWriteEncodedStrip(3T), TIFFWriteRawStrip(3T)