📄 dmtxwrite.h
字号:
/*libdmtx - Data Matrix Encoding/Decoding LibraryCopyright (c) 2008 Mike LaughtonThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USAContact: mike@dragonflylogic.com*//* $Id: dmtxwrite.h 503 2008-11-07 18:37:35Z mblaughton $ */#ifndef __DMTXWRITE_H__#define __DMTXWRITE_H__#if ENABLE_NLS# include <libintl.h># define _(String) gettext(String)#else# define _(String) String#endif#define N_(String) String#define DMTXWRITE_BUFFER_SIZE 4096typedef struct { DmtxRgb color; DmtxRgb bgColor; char format; char *inputPath; char *outputPath; int rotate; int sizeIdx; int verbose; int mosaic; int dpi;} UserOptions;static void InitUserOptions(UserOptions *opt);static int HandleArgs(UserOptions *opt, int *argcp, char **argvp[], DmtxEncode *encode);static void ReadData(UserOptions *opt, int *codeBuffer, unsigned char *codeBufferSize);static void ShowUsage(int status);static void WriteImagePng(UserOptions *opt, DmtxEncode *encode);static void WriteImagePnm(UserOptions *opt, DmtxEncode *encode);static void WriteAsciiBarcode(DmtxEncode *encode);static void WriteCodewords(DmtxEncode *encode);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -