📄 pdf417codec_8h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>pdf417codec Interface: pdf417codec.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>pdf417codec.h File Reference</h1>The header file of the DLL for use with C. <a href="#_details">More...</a><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a0">DLLEXPORT</a>(rettype) rettype</td></tr><tr><td colspan="2"><br><h2>Typedefs</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a1">uint</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a2">ubyte</a></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a3">pdf417_lockHandle</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> handle)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Increment reference count of handle. <a href="#a3"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a4">pdf417_freeHandle</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> handle)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Decrement reference count of handle. <a href="#a4"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a5">pdf417_setRtdebug</a> (int value)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Set value of runtime debugging variable. <a href="#a5"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a6">pdf417_flushall</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Flush stdout (for debugging purposes). <a href="#a6"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a7">pdf417_createSegTextByLines</a> (int len, char **lines)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Create the segment input text for the encoder by lines of text. <a href="#a7"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a8">pdf417_appendTextLine</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> lineshandle, char *zline)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Append a line of text to the lines. <a href="#a8"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a9">pdf417_encodeSegments</a> (int in_rval, int in_cval, int in_ec_level, int use_default, <a class="el" href="pdf417codec_8h.html#a1">uint</a> segs_handle)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Encoding routine if dealing with segments. <a href="#a9"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a10">pdf417_encodePlain</a> (int in_rval, int in_cval, int in_ec_level, int use_default, char *buffer, int buflen)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">High level encoding routine dealing with plain bytes. <a href="#a10"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a11">pdf417_decodePlain</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Process a black&white or grayscale image and read possible barcode. <a href="#a11"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a12">pdf417_getStrSize</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> strhandle)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of a char-Array. <a href="#a12"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a13">pdf417_getStrDataCopy</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> strhandle, char *dest)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the data of the string into dest array. <a href="#a13"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a14">pdf417_createImage</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> width, <a class="el" href="pdf417codec_8h.html#a1">uint</a> height, <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *graydata)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new image object, copies the data from graydata and returns its handle. <a href="#a14"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a15">pdf417_createImageByRgb</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> width, <a class="el" href="pdf417codec_8h.html#a1">uint</a> height, int method, <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *rgbdata)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new image object, copies the data from rgbdata and returns its handle. <a href="#a15"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a16">pdf417_getImageWidth</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a17">pdf417_getImageHeight</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a18">pdf417_getImageDataCopy</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle, <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *dest)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the data of the image into dest array (size: width*height of image). <a href="#a18"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a19">pdf417_getImageDataCopyRgb</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle, <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> *dest)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the data of the image into dest array (size: width*height*3 of image) as RGB values. <a href="#a19"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a20">pdf417_imageScale</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle, <a class="el" href="pdf417codec_8h.html#a1">uint</a> scalex, <a class="el" href="pdf417codec_8h.html#a1">uint</a> scaley)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new, scaled image enlarged by the factors scalex, scaley and return a handle to it. <a href="#a20"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="pdf417codec_8h.html#a21">pdf417_imageBorder</a> (<a class="el" href="pdf417codec_8h.html#a1">uint</a> imghandle, <a class="el" href="pdf417codec_8h.html#a1">uint</a> top, <a class="el" href="pdf417codec_8h.html#a1">uint</a> bottom, <a class="el" href="pdf417codec_8h.html#a1">uint</a> right, <a class="el" href="pdf417codec_8h.html#a1">uint</a> left, <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> color)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new, bordered image with borders of the given widths for top, bottom, right and left and the given color (default 255) and return a handle to it. <a href="#a21"></a><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>The header file of the DLL for use with C. <p>It is mainly taken from cdllfront.d by removing function bodies and adding some typedefs and preprocessor commands. <hr><h2>Define Documentation</h2><a class="anchor" name="a0" doxytag="pdf417codec.h::DLLEXPORT"></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">#define DLLEXPORT </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">rettype </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> rettype</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="a2" doxytag="pdf417codec.h::ubyte"></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">typedef unsigned char <a class="el" href="pdf417codec_8h.html#a2">ubyte</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a1" doxytag="pdf417codec.h::uint"></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">typedef unsigned int <a class="el" href="pdf417codec_8h.html#a1">uint</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a8" doxytag="pdf417codec.h::pdf417_appendTextLine"></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_appendTextLine </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td> <td class="mdname" nowrap> <em>lineshandle</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>char * </td> <td class="mdname" nowrap> <em>zline</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Append a line of text to the lines. <p> </td> </tr></table><a class="anchor" name="a14" doxytag="pdf417codec.h::pdf417_createImage"></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_createImage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td> <td class="mdname" nowrap> <em>width</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> </td> <td class="mdname" nowrap> <em>height</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> * </td> <td class="mdname" nowrap> <em>graydata</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a new image object, copies the data from graydata and returns its handle. <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>width</em> </td><td>Image width in pixel </td></tr> <tr><td valign="top"></td><td valign="top"><em>height</em> </td><td>Image height in pixel </td></tr> <tr><td valign="top"></td><td valign="top"><em>graydata</em> </td><td>Pointer to array of gray values (size: width*height) in the left-to-right top-to-bottom order, or null to create a black image. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a15" doxytag="pdf417codec.h::pdf417_createImageByRgb"></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_createImageByRgb </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="pdf417codec_8h.html#a1">uint</a> </td> <td class="mdname" nowrap> <em>width</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> </td> <td class="mdname" nowrap> <em>height</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>method</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> * </td> <td class="mdname" nowrap> <em>rgbdata</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a new image object, copies the data from rgbdata and returns its handle. <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>width</em> </td><td>Image width in pixel </td></tr> <tr><td valign="top"></td><td valign="top"><em>height</em> </td><td>Image height in pixel </td></tr> <tr><td valign="top"></td><td valign="top"><em>method</em> </td><td>Always 0, reserved for future use. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rgbdata</em> </td><td>Pointer to array of rgb values (size: width*height*3) in the left-to-right top-to-bottom order, each pixel represented as three bytes for R, G and B, or null to create a black image. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a7" doxytag="pdf417codec.h::pdf417_createSegTextByLines"></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_createSegTextByLines </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>char ** </td> <td class="mdname" nowrap> <em>lines</em></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -