C# .NET 的免费条码 API

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2043341/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 22:56:28  来源:igfitidea点击:

Free Barcode API for .NET

c#apicomponentsbarcode

提问by Vaccano

Is there a decent free API/component for printing barcodes in C#?

是否有一个不错的免费 API/组件用于在 C# 中打印条码?

采纳答案by Svish

Could the Barcode Rendering Frameworkat CodeplexGitHub be of help?

可以在条码渲染架构,在Codeplex上GitHub上有所帮助?

回答by Rubens Farias

There is a "3 of 9"control on CodeProject: Barcode .NET Control

"3 of 9"CodeProject上有一个控件:Barcode .NET Control

回答by Andrei Schneider

I do recommend BarcodeLibrary

我推荐BarcodeLibrary

Here is a small piece of code of how to use it.

这是如何使用它的一小段代码。

        BarcodeLib.Barcode barcode = new BarcodeLib.Barcode()
        {
            IncludeLabel = true,
            Alignment = AlignmentPositions.CENTER,
            Width = 300,
            Height = 100,
            RotateFlipType = RotateFlipType.RotateNoneFlipNone,
            BackColor = Color.White,
            ForeColor = Color.Black,
        };

        Image img = barcode.Encode(TYPE.CODE128B, "123456789");