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