Blame man/TIFFWriteRawStrip.3tiff

Packit 994f1a
.\" $Id: TIFFWriteRawStrip.3tiff,v 1.2 2005/11/02 11:07:18 dron Exp $
Packit 994f1a
.\"
Packit 994f1a
.\" Copyright (c) 1988-1997 Sam Leffler
Packit 994f1a
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit 994f1a
.\"
Packit 994f1a
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit 994f1a
.\" its documentation for any purpose is hereby granted without fee, provided
Packit 994f1a
.\" that (i) the above copyright notices and this permission notice appear in
Packit 994f1a
.\" all copies of the software and related documentation, and (ii) the names of
Packit 994f1a
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit 994f1a
.\" publicity relating to the software without the specific, prior written
Packit 994f1a
.\" permission of Sam Leffler and Silicon Graphics.
Packit 994f1a
.\" 
Packit 994f1a
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit 994f1a
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit 994f1a
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit 994f1a
.\" 
Packit 994f1a
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit 994f1a
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit 994f1a
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit 994f1a
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit 994f1a
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit 994f1a
.\" OF THIS SOFTWARE.
Packit 994f1a
.\"
Packit 994f1a
.if n .po 0
Packit 994f1a
.TH TIFFWriteRawstrip 3TIFF "October 15, 1995" "libtiff"
Packit 994f1a
.SH NAME
Packit 994f1a
TIFFWriteRawStrip \- write a strip of raw data to an open
Packit 994f1a
.SM TIFF
Packit 994f1a
file
Packit 994f1a
.SH SYNOPSIS
Packit 994f1a
.B "#include <tiffio.h>"
Packit 994f1a
.sp
Packit 994f1a
.BI "tsize_t TIFFWriteRawStrip(TIFF *" tif ", tstrip_t " strip ", tdata_t " buf ", tsize_t " size ")"
Packit 994f1a
.SH DESCRIPTION
Packit 994f1a
Append
Packit 994f1a
.I size
Packit 994f1a
bytes of raw data to the specified strip.
Packit 994f1a
.SH NOTES
Packit 994f1a
The strip number must be valid according to the current settings of the
Packit 994f1a
.I ImageLength
Packit 994f1a
and
Packit 994f1a
.I RowsPerStrip
Packit 994f1a
tags.
Packit 994f1a
An image may be dynamically grown by increasing the value of
Packit 994f1a
.I ImageLength
Packit 994f1a
prior to each call to
Packit 994f1a
.IR TIFFWriteRawStrip .
Packit 994f1a
.SH "RETURN VALUES"
Packit 994f1a
\-1 is returned if an error occurred.
Packit 994f1a
Otherwise, the value of
Packit 994f1a
.IR size 
Packit 994f1a
is returned.
Packit 994f1a
.SH DIAGNOSTICS
Packit 994f1a
All error messages are directed to the
Packit 994f1a
.BR TIFFError (3TIFF)
Packit 994f1a
routine.
Packit 994f1a
.PP
Packit 994f1a
\fB%s: File not open for writing\fP.
Packit 994f1a
The file was opened for reading, not writing.
Packit 994f1a
.PP
Packit 994f1a
\fBCan not write scanlines to a tiled image\fP. The image is assumed to be
Packit 994f1a
organized in tiles because the
Packit 994f1a
.I TileWidth
Packit 994f1a
and
Packit 994f1a
.I TileLength
Packit 994f1a
tags have been set with
Packit 994f1a
.BR TIFFSetField (3TIFF).
Packit 994f1a
.PP
Packit 994f1a
\fB%s: Must set "ImageWidth" before writing data\fP.
Packit 994f1a
The image's width has not be set before the first write.
Packit 994f1a
See
Packit 994f1a
.BR TIFFSetField (3TIFF)
Packit 994f1a
for information on how to do this.
Packit 994f1a
.PP
Packit 994f1a
\fB%s: Must set "PlanarConfiguration" before writing data\fP.
Packit 994f1a
The organization of data has not be defined before the first write.
Packit 994f1a
See
Packit 994f1a
.BR TIFFSetField (3TIFF)
Packit 994f1a
for information on how to do this.
Packit 994f1a
.PP
Packit 994f1a
\fB%s: No space for strip arrays"\fP.
Packit 994f1a
There was not enough space for the arrays that hold strip
Packit 994f1a
offsets and byte counts.
Packit 994f1a
.PP
Packit 994f1a
\fB%s: Strip %d out of range, max %d\fP.
Packit 994f1a
The specified strip is not a valid strip according to the
Packit 994f1a
currently specified image dimensions.
Packit 994f1a
.SH "SEE ALSO"
Packit 994f1a
.BR TIFFOpen (3TIFF),
Packit 994f1a
.BR TIFFWriteEncodedStrip (3TIFF),
Packit 994f1a
.BR TIFFWriteScanline (3TIFF),
Packit 994f1a
.BR libtiff (3TIFF)
Packit 994f1a
.PP
Packit 994f1a
Libtiff library home page:
Packit 994f1a
.BR http://www.remotesensing.org/libtiff/