首页 > 编程学习 > Himall商城图形码帮助类二维码中生成图片(2)

/// <summary>
        /// 生成图片
        /// </summary>
        /// <param name="content"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="centralImage"></param>
        /// <param name="format"></param>
        /// <returns></returns>
        public static Bitmap Create(string content, int width, int height, Image centralImage = null, zxingBarcodeFormat format = zxingBarcodeFormat.QR_CODE)
        {
            BarcodeFormat codeformat = com.google.zxing.BarcodeFormat.QR_CODE;
            switch (format)
            {
                case zxingBarcodeFormat.QR_CODE:
                    codeformat = com.google.zxing.BarcodeFormat.QR_CODE;
            

Copyright © 2010-2022 dgrt.cn 版权所有 |关于我们| 联系方式