TIFFWriteRawStrip.3tiff revision 13666
19928N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
19928N/A<!--ArborText, Inc., 1988-1999, v.4002-->
19928N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
19928N/A<!ENTITY exde-tt "EXTENDED DESCRIPTION">
19928N/A<!ENTITY synp-tt "SYNOPSIS">
19928N/A<!ENTITY cmd "TIFFWriteRawStrip">
19928N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
19928N/A%commonents;
19928N/A<!ENTITY % gnomecommonents SYSTEM "gnomecommon.ent">
19928N/A%gnomecommonents;
19928N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
19928N/A%booktitles;
19928N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
19928N/A]>
19928N/A<?Pub UDT _bookmark _target>
19928N/A<?Pub Inc>
19928N/A<?PubInc>
19928N/A<refentry id="TIFFWriteRawStrip-3tiff">
19928N/A<!-- %Z%%M% %I% %E% SMI; -->
19928N/A<refmeta><refentrytitle>TIFFWriteRawStrip</refentrytitle><manvolnum>3tiff
19928N/A</manvolnum>
19928N/A<refmiscinfo class="date">05 Apr 2004</refmiscinfo>
19928N/A<refmiscinfo class="sectdesc">&man3;</refmiscinfo>
19928N/A<refmiscinfo class="software">&release;</refmiscinfo>
19928N/A<refmiscinfo class="arch">generic</refmiscinfo>
19928N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
19928N/A</refmeta>
19928N/A<indexterm><primary>TIFFWriteRawStrip</primary></indexterm><indexterm><primary>
19928N/Awrite a strip of raw data to an open TIFF file</primary></indexterm>
19928N/A<refnamediv id="TIFFWriteRawStrip-3tiff-name"><refname>TIFFWriteRawStrip</refname>
19928N/A<refpurpose>write a strip of raw data to an open TIFF file</refpurpose></refnamediv>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-synp"><title>&synp-tt;</title>
19928N/A<programlisting>#include &lt;tiffio.h>
19928N/Atsize_t TIFFWriteRawStrip(TIFF* tif, tstrip_t strip, tdata_t
19928N/Abuf, tsize_t size)</programlisting>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-desc"><title>&desc-tt;</title>
19928N/A<para>Append <literal>size</literal> bytes of raw data to the specified strip.
19928N/A</para>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-exde"><title>&exde-tt;</title>
19928N/A<para>The strip number must be valid according to the current settings of
19928N/Athe <literal>ImageLength</literal> and <literal>RowsPerStrip</literal> tags.
19928N/AAn image may be dynamically grown by increasing the value of <literal>ImageLength
19928N/A</literal> prior to each call to <literal>TIFFWriteRawStrip</literal>.</para>
19928N/A<refsect2 id="TIFFWriteRawStrip-3tiff-exde-diags">
19928N/A<title>Diagnostics</title>
19928N/A<para>All error messages are directed to the <literal>TIFFError(3tiff)</literal>
19928N/Aroutine.</para>
19928N/A<variablelist>
19928N/A<varlistentry><term>%s: File not open for writing.</term><listitem><para>
19928N/AThe file was opened for reading, not writing.</para>
19928N/A</listitem></varlistentry>
19928N/A<varlistentry><term>Can not write scanlines to a tiled image.</term><listitem>
19928N/A<para>The image is assumed to be organized in tiles because the <literal>
19928N/ATileWidth</literal> and <literal>TileLength</literal> tags have been set with <literal>
19928N/ATIFFSetField(3tiff)</literal>.</para>
19928N/A</listitem></varlistentry>
19928N/A<varlistentry><term>%s: Must set "ImageWidth" before writing data.</term>
19928N/A<listitem><para>The image width has not been<?Pub Caret> set before the first
19928N/Awrite. See <literal>TIFFSetField(3tiff)</literal> for information on how to do
19928N/Athis.</para>
19928N/A</listitem></varlistentry>
19928N/A<varlistentry><term>%s: Must set "PlanarConfiguration" before writing data.
19928N/A</term><listitem><para>The organization of data has not been defined before
19928N/Athe first write. See <literal>TIFFSetField(3tiff)</literal> for information on
19928N/Ahow to do this.</para>
19928N/A</listitem></varlistentry>
19928N/A<varlistentry><term>%s: No space for strip arrays".</term><listitem><para>
19928N/AThere was not enough space for the arrays that hold strip offsets and byte
19928N/Acounts.</para>
19928N/A</listitem></varlistentry>
19928N/A<varlistentry><term>%s: Strip %d out of range, max %d.</term><listitem><para>
19928N/AThe specified strip is not a valid strip according to the currently specified
19928N/Aimage dimensions.</para>
19928N/A</listitem></varlistentry>
19928N/A</variablelist></refsect2>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-rtrn"><title>&rtrn-tt;</title>
19928N/A<para>-1 is returned if an error was encountered. Otherwise, the value of <literal>
19928N/Asize</literal> is returned.</para>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-attr"><title>&attr-tt;</title>
19928N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
19928N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
19928N/Afor descriptions of the following attributes:</para>
19928N/A<informaltable frame="all">
19928N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
19928N/A<colspec colname="COLSPEC1" colwidth="1*">
19928N/A<thead>
19928N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
19928N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
19928N/A</thead>
19928N/A<tbody>
19928N/A<row><entry><para>Availability</para></entry><entry><para>SUNWTiff</para></entry>
19928N/A</row>
19928N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
19928N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
19928N/A</tbody>
19928N/A</tgroup>
19928N/A</informaltable>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-also"><title>&also-tt;</title>
19928N/A<!--Reference to another man page-->
19928N/A<!--Reference to a Help manual-->
19928N/A<!--Reference to a book.-->
19928N/A<para><citerefentry><refentrytitle>libtiff</refentrytitle><manvolnum>3</manvolnum>
19928N/A</citerefentry>, <citerefentry><refentrytitle>TIFFOpen</refentrytitle><manvolnum>
19928N/A3tiff</manvolnum></citerefentry>, <citerefentry><refentrytitle>TIFFWriteEncodedStrip
19928N/A</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry>
19928N/A<refentrytitle>TIFFWriteScanline</refentrytitle><manvolnum>3tiff</manvolnum>
19928N/A</citerefentry></para>
19928N/A</refsect1>
19928N/A<refsect1 id="TIFFWriteRawStrip-3tiff-note"><title>&note-tt;</title>
19928N/A<para>This man page was originally written by Sam Leffler. Updated by Breda
19928N/AMcColgan, Sun Microsystems Inc., 2004.</para>
19928N/A</refsect1>
19928N/A</refentry>
19928N/A<?Pub *0000005618>
19928N/A