25

我们在办公室周围使用了很多二维码。我想知道我们是否可以生成中间带有小公司徽标的二维码。我在网上看到的例子很少。

但我希望它自动生成,而不是用户使用 Photoshop 软件手动编辑它。

我很感激任何帮助。

谢谢。

4

7 回答 7

16

你可以试试http://www.unitaglive.com/qrcode。它允许许多内容类型和大量自定义,包括更改眼睛的颜色;使用图像作为背景;多种款式;阴影; 冗余; 等等,还允许您使用徽标,并且基于免费增值业务模式。免费计划没有注册

于 2012-09-01T14:17:12.860 回答
13

这是一个网站,它将生成一个 QR 码,您的图像实际上是作为 QR 码的一部分嵌入的,没有纠错。

http://research.swtch.com/qr/draw

如果您想研究自己实现逻辑以实现自动化,这里有一些关于如何完成的信息。

http://research.swtch.com/qart

于 2012-05-04T22:07:40.443 回答
5

http://beqrious.com/generator然后是图形选项卡

于 2010-08-28T05:08:02.660 回答
4

You may want to look at http://contentdeveloper.com/2010/01/how-to-customize-qr-codes-with-your-brands-identity/ (there were some other articles I read just a couple nights ago, but I can't find them, though this should work as well)...also, something I read suggested using the highest error correction level. This way, more of the data in the barcode is merely error-correction data. You can overwrite this with no worries, as long as you realize that if the rest of the barcode gets damaged, you may not be able to recover the data.

Unfortunately, it's just going to involve a bunch of trial and error.

Good luck!

EDIT: Sorry, I just read that you wanted it generated automatically rather than editing the image.

于 2011-06-25T14:27:30.377 回答
4

我创建了一个视频,展示了如何使用开源 c# 库创建二维码,然后将您选择的徽标上传/嵌入到二维码中:

http://markhagan.me/Samples/Create_QR_Code_With_Logo_ASPNet

该视频只有 10 分钟长,结果是一个有效的二维码生成器。如果你不想花十分钟,这里是源代码:

头版:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="CodeCreator._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="URL" runat="server"></asp:TextBox>
        <br /><br />
        <asp:FileUpload ID="LogoUpload" runat="server" />
        <br /><br />
        <asp:Button ID="CreateCode" runat="server" Text="Create QR Code" OnClick="CreateCode_OnClick" />
        <br /><br />
        <asp:Image runat="server" ID="QRImage" />
    </div>
    </form>
</body>
</html>

和代码隐藏:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using MessagingToolkit.QRCode.Codec;
using MessagingToolkit.QRCode.Codec.Data;
using System.Drawing;
using System.Drawing.Imaging;

namespace CodeCreator
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void CreateCode_OnClick(object sender, EventArgs e)
        {
            string path = "c:\\code\\projects\\CodeCreator\\CodeCreator\\";
            QRCodeEncoder encoder = new QRCodeEncoder();

            encoder.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.H; // 30%
            encoder.QRCodeScale = 10;

            Bitmap img = encoder.Encode(URL.Text);
            LogoUpload.SaveAs(path + LogoUpload.FileName);

            System.Drawing.Image logo = System.Drawing.Image.FromFile(path + LogoUpload.FileName);

            int left = (img.Width / 2) - (logo.Width / 2);
            int top = (img.Height / 2) - (logo.Height / 2);

            Graphics g = Graphics.FromImage(img);

            g.DrawImage(logo, new Point(left, top));

            img.Save(path + "img.jpg", ImageFormat.Jpeg);

            QRImage.ImageUrl = "img.jpg";
        }
    }
}
于 2012-05-15T18:31:47.830 回答
1

您也可以直接将您的徽标与 LogoGrab 一起使用。只需在http://www.logograb.com/upload上传您的徽标,将您希望的任何内容链接到您的徽标,让您的客户在他们看到的任何地方扫描您的徽标。

于 2013-05-02T22:35:00.437 回答
0

看看以下网站。它们允许您上传徽标或图形,并将其自动嵌入到二维码中。它们还支持颜色变化。

我相信 QR4 网站正在开发一种 API,以允许其他人在他们的网站上提供相同的服务。

希望以上链接有助于解决您的问题。

于 2011-04-09T11:28:59.420 回答