⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdf417codec_8h.html

📁 PDF417二维条码源代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Create the segment input text for the encoder by lines of text. <p>Returns a handle to the text.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Length of lines array </td></tr>    <tr><td valign="top"></td><td valign="top"><em>lines</em>&nbsp;</td><td>Array of null-terminated strings describing segments in text format </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a11" doxytag="pdf417codec.h::pdf417_decodePlain"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> pdf417_decodePlain           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>imghandle</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Process a black&amp;white or grayscale image and read possible barcode. <p>Returns a handle to a char[] with the decoded plain bytes.     </td>  </tr></table><a class="anchor" name="a10" doxytag="pdf417codec.h::pdf417_encodePlain"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> pdf417_encodePlain           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap> <em>in_rval</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>in_cval</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>in_ec_level</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>use_default</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap> <em>buffer</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>buflen</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>High level encoding routine dealing with plain bytes. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>in_rval</em>&nbsp;</td><td>number of rows of codewords or -1 to let the function calculate the appropriate number. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>in_cval</em>&nbsp;</td><td>number of columns of codewords including additional left and right codeword but not start and stop. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>in_ec_level</em>&nbsp;</td><td>Level of error correction (0: least, 8: most) </td></tr>    <tr><td valign="top"></td><td valign="top"><em>use_default</em>&nbsp;</td><td>if true ignores in_rval and in_cval and sets it to default values. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>Pointer to plain bytes to encode. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buflen</em>&nbsp;</td><td>if buflen &gt;= 0 length of buffer, if buflen == -1, length of buffer is determined by terminating '\0' in buffer.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>handle to an image with the barcode without borders, each module has width and height of one pixel </dd></dl>    </td>  </tr></table><a class="anchor" name="a9" doxytag="pdf417codec.h::pdf417_encodeSegments"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> pdf417_encodeSegments           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap> <em>in_rval</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>in_cval</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>in_ec_level</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>use_default</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="pdf417codec_8h.html#a1">uint</a>&nbsp;</td>          <td class="mdname" nowrap> <em>segs_handle</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Encoding routine if dealing with segments. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>in_rval</em>&nbsp;</td><td>number of rows of codewords or -1 to let the function calculate the appropriate number. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>in_cval</em>&nbsp;</td><td>number of columns of codewords including additional left and right codeword but not start and stop. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>in_ec_level</em>&nbsp;</td><td>Level of error correction (0: least, 8: most) </td></tr>    <tr><td valign="top"></td><td valign="top"><em>use_default</em>&nbsp;</td><td>if true ignores in_rval and in_cval and sets it to default values. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>segs_handle</em>&nbsp;</td><td>Handle to lines of text in the segment text format, created by #pdf417_createRawByLines or to a Segments object</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>handle to an image with the barcode without borders, each module has width and height of one pixel </dd></dl>    </td>  </tr></table><a class="anchor" name="a6" doxytag="pdf417codec.h::pdf417_flushall"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void pdf417_flushall           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Flush stdout (for debugging purposes). <p>    </td>  </tr></table><a class="anchor" name="a4" doxytag="pdf417codec.h::pdf417_freeHandle"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int pdf417_freeHandle           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>handle</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Decrement reference count of handle. <p>If it becomes 0, the handle will be invalid.     </td>  </tr></table><a class="anchor" name="a18" doxytag="pdf417codec.h::pdf417_getImageDataCopy"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int pdf417_getImageDataCopy           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a>&nbsp;</td>          <td class="mdname" nowrap> <em>imghandle</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>dest</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Copies the data of the image into dest array (size: width*height of image). <p>    </td>  </tr></table><a class="anchor" name="a19" doxytag="pdf417codec.h::pdf417_getImageDataCopyRgb"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int pdf417_getImageDataCopyRgb           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a>&nbsp;</td>          <td class="mdname" nowrap> <em>imghandle</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>dest</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -