<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_rw_p_n_m_8h">
<title>/Users/bernard/b20/bsoft/include/rwPNM.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/rwPNM.h</primary></indexterm>
<para>

<para>Header file for reading and writing PNM files. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_p_n_m_8h_1a345b9d47fb74fc3e0bc314d155bea373">readPNM</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata, int img_select)</para>

<para>Reading a PNM type file. A simple image format. PBM bit image format. PGM grayscale image format. PPM <link linkend="_class_r_g_b">RGB</link> color image format. File format extensions: .pbm, .pgm, .ppm The header contains ascii text indicating the image and element sizes. Data types: byte, unsigned short. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_p_n_m_8h_1a1adb7e539b68c400bbd3405c1af874be">writePNM</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a PNM type file. A simple image format. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for reading and writing PNM files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20110317 </para>

<para>Modified: 20111217 <literallayout><computeroutput>Format: 2D simple image file format
</computeroutput></literallayout> </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_p_n_m_8h_1a345b9d47fb74fc3e0bc314d155bea373"/>    <section>
    <title>readPNM()</title>
<indexterm><primary>readPNM</primary><secondary>rwPNM.h</secondary></indexterm>
<indexterm><primary>rwPNM.h</primary><secondary>readPNM</secondary></indexterm>
<para><computeroutput>int readPNM (<link linkend="_class_bimage">Bimage</link> * p, int readdata, int img_select)</computeroutput></para><para>

<para>Reading a PNM type file. A simple image format. PBM bit image format. PGM grayscale image format. PPM <link linkend="_class_r_g_b">RGB</link> color image format. File format extensions: .pbm, .pgm, .ppm The header contains ascii text indicating the image and element sizes. Data types: byte, unsigned short. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>readdata</entry>
                                <entry>
<para>flag to activate reading of image data. </para>
</entry>
                            </row>
                            <row>
                                <entry>img_select</entry>
                                <entry>
<para>image selection in multi-image file (-1 = all images). </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0, &lt;0 on error. </para>
</formalpara>
</para>
<para>
Definition at line 79 of file rwPNM.cpp.</para>
    </section><anchor xml:id="_rw_p_n_m_8h_1a1adb7e539b68c400bbd3405c1af874be"/>    <section>
    <title>writePNM()</title>
<indexterm><primary>writePNM</primary><secondary>rwPNM.h</secondary></indexterm>
<indexterm><primary>rwPNM.h</primary><secondary>writePNM</secondary></indexterm>
<para><computeroutput>int writePNM (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a PNM type file. A simple image format. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0, &lt;0 on error. </para>
</formalpara>
</para>
<para>
Definition at line 182 of file rwPNM.cpp.</para>
</section>
</section>
</section>
