/************************************************************************** * * Copyright (c) 2015-2020 by WuYuan Technology, Inc. * * This software is copyrighted by and is the property of SiFar * Technology, Inc.. All rights are reserved by SiFar Technology, Inc.. * This software may only be used in accordance with the corresponding * license agreement. Any unauthorized use, duplication, distribution, * or disclosure of this software is expressly forbidden. * * This Copyright notice MUST not be removed or modified without prior * written consent of SiFar Technology, Inc.. * * WuYuan Technology, Inc. reserves the right to modify this software without notice. * * Author: jiamin * Ver: 1.0.0 2021.04.15 * Description: creat **************************************************************************/ #ifndef _SF_BMP_H_ #define _SF_BMP_H_ #include "qrencode.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif typedef struct sfBMP_DATA_S { int width; //width of the symbol int height; //height of the symbol unsigned char *data; //symbol data } SF_BMP_DATA_S; int sf_qrcode_bmpfile_write(QRcode *DataInfo, const char *outfile, int magnification); #ifdef __cplusplus #if __cplusplus } #endif #endif #endif