在生產環境中無水印測試。
無論您需要它在哪裡運作都可以。
取得30天的完全功能產品。
幾分鐘內即可上手並運行。
在您的產品試用期間,獲得完整的工程師支援
using IronBarCode;
using System.Drawing;
// Reading a barcode is easy with IronBarcode!
var resultFromFile = BarcodeReader.Read(@"file/barcode.png"); // From a file
var resultFromBitMap = BarcodeReader.Read(new Bitmap("barcode.bmp")); // From a bitmap
var resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")); // From an image file
var resultFromPdf = BarcodeReader.ReadPdf(@"file/mydocument.pdf"); // From PDF use ReadPdf
// To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
var myOptionsExample = new BarcodeReaderOptions
{
// Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
// There is a tradeoff in performance as more detail is set
Speed = ReadingSpeed.Balanced,
// Reader will stop scanning once a single barcode is found (if set to true)
ExpectMultipleBarcodes = true,
// By default, all barcode formats are scanned for
// Specifying a subset of barcode types to search for would improve performance
ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
// Utilize multiple threads to read barcodes from multiple images in parallel
Multithreaded = true,
// Maximum threads for parallelized barcode reading
// Default is 4
MaxParallelThreads = 2,
// The area of each image frame in which to scan for barcodes
// Specifying a crop area will significantly improve performance and avoid noisy parts of the image
CropArea = new Rectangle(),
// Special setting for Code39 barcodes
// If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
UseCode39ExtendedMode = true
};
// Read with the options applied
var results = BarcodeReader.Read("barcode.png", myOptionsExample);
// Create a barcode with one line of code
var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8);
// After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100);
// Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg");
// Get the barcode as an image for further processing
var myBarcodeImage = myBarcode.Image;
Imports IronBarCode
Imports System.Drawing
' Reading a barcode is easy with IronBarcode!
Dim resultFromFile = BarcodeReader.Read("file/barcode.png") ' From a file
Dim resultFromBitMap = BarcodeReader.Read(New Bitmap("barcode.bmp")) ' From a bitmap
Dim resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")) ' From an image file
Dim resultFromPdf = BarcodeReader.ReadPdf("file/mydocument.pdf") ' From PDF use ReadPdf
' To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
Dim myOptionsExample As New BarcodeReaderOptions With {
' Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
' There is a tradeoff in performance as more detail is set
.Speed = ReadingSpeed.Balanced,
' Reader will stop scanning once a single barcode is found (if set to true)
.ExpectMultipleBarcodes = True,
' By default, all barcode formats are scanned for
' Specifying a subset of barcode types to search for would improve performance
.ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
' Utilize multiple threads to read barcodes from multiple images in parallel
.Multithreaded = True,
' Maximum threads for parallelized barcode reading
' Default is 4
.MaxParallelThreads = 2,
' The area of each image frame in which to scan for barcodes
' Specifying a crop area will significantly improve performance and avoid noisy parts of the image
.CropArea = New Rectangle(),
' Special setting for Code39 barcodes
' If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
.UseCode39ExtendedMode = True
}
' Read with the options applied
Dim results = BarcodeReader.Read("barcode.png", myOptionsExample)
' Create a barcode with one line of code
Dim myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8)
' After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100)
' Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg")
' Get the barcode as an image for further processing
Dim myBarcodeImage = myBarcode.Image
Install-Package BarCode
IronBarcode支援多種標準格式,從影像檔案(jpeg、png 和 jpg)到更適合程式化操作的格式(例如點陣圖),後者允許在程式中傳遞變數。此外,它還支援 PDF 等外部格式,使IronBarcode能夠無縫整合到任何程式碼庫中,並為開發人員提供處理文件格式和變數的靈活性。
除了可以讀取所有檔案格式的條碼外, IronBarcode還可以作為條碼產生器,支援所有標準編碼和格式,例如 Code128 和 Code39。 設定條碼產生器只需要兩行程式碼。 IronBarcode 的入門門檻低,並為開發人員提供了大量的自訂選項,是所有與條碼相關的場景的首選。
我們首先導入必要的函式庫,例如 IronBarCode 和 System.Drawing,並實例化 BarcodeWriter,以建立一個條碼,其字串值為 12345,格式為 EAN8。 然後我們將生成的條碼以所需格式儲存為圖像。 IronBarcode支援建立 Image 和 Bitmap 條碼,因此有多種選擇。
如上所示,使用IronBarcode產生條碼只需要兩行程式碼,並將其儲存為檔案以供以後使用。 IronBarcode進一步擴展了這項功能,為開發者提供了大量選項,可以根據具體情況自訂條碼。
我們可以使用 ResizeTo 方法,並傳入高度和寬度來調整條碼圖像的大小。
與上述類似,我們首先實例化 BarcodeReader,將檔案路徑傳遞給 Read 方法,並將其儲存為變數以便稍後使用和操作條碼物件。 有指定的方法可以讀取外部格式,例如 PDF,代碼為 ReadPDF; 但是,對於一般的圖像格式和點陣圖,我們將使用 Read。
IronBarcode允許開發人員掃描標準檔案格式的條碼。 然而,在某些情況下,開發人員希望微調 Read 方法的行為,尤其是在以程式設計方式讀取一批條碼檔案的情況下。 This is where BarcodeReaderOptions comes in. IronBarCode lets you fully customize things such as the speed at which it reads with Speed, whether multiple barcodes are expected in the file with ExpectedMultipleBarcodes, and what kind of barcodes they are with the property ExpectBarcodeTypes. 這樣一來,開發人員就可以運行多個執行緒來並行讀取多個映像中的條碼,還可以控制並行讀取時使用的執行緒數。
以上僅為IronBarcode強大功能的部分體現。 完整清單請參閱此處的文件。
using IronBarCode;
using IronSoftware.Drawing;
// Choose which filters are to be applied (in order)
// Set cacheAtEachIteration = true to save the intermediate image data after each filter is applied
var filtersToApply = new ImageFilterCollection(cacheAtEachIteration: true) {
new SharpenFilter(),
new InvertFilter(),
new ContrastFilter(),
new BrightnessFilter(),
new AdaptiveThresholdFilter(),
new BinaryThresholdFilter(),
new GaussianBlurFilter(),
new MedianBlurFilter(),
new BilateralFilter()
};
BarcodeReaderOptions myOptionsExample = new BarcodeReaderOptions()
{
// Set chosen filters in BarcodeReaderOptions
ImageFilters = filtersToApply,
Speed = ReadingSpeed.Balanced,
ExpectMultipleBarcodes = true,
};
// Read with the options applied
BarcodeResults results = BarcodeReader.Read("screenshot.png", myOptionsExample);
AnyBitmap[] filteredImages = results.FilterImages();
// Export intermediate image files to disk
for (int i = 0 ; i < filteredImages.Length ; i++)
filteredImages[i].SaveAs($"{i}_barcode.png");
// Or
results.ExportFilterImagesToDisk("filter-result.jpg");
Imports IronBarCode
Imports IronSoftware.Drawing
' Choose which filters are to be applied (in order)
' Set cacheAtEachIteration = true to save the intermediate image data after each filter is applied
Private filtersToApply = New ImageFilterCollection(cacheAtEachIteration:= True) From {
New SharpenFilter(),
New InvertFilter(),
New ContrastFilter(),
New BrightnessFilter(),
New AdaptiveThresholdFilter(),
New BinaryThresholdFilter(),
New GaussianBlurFilter(),
New MedianBlurFilter(),
New BilateralFilter()
}
Private myOptionsExample As New BarcodeReaderOptions() With {
.ImageFilters = filtersToApply,
.Speed = ReadingSpeed.Balanced,
.ExpectMultipleBarcodes = True
}
' Read with the options applied
Private results As BarcodeResults = BarcodeReader.Read("screenshot.png", myOptionsExample)
Private filteredImages() As AnyBitmap = results.FilterImages()
' Export intermediate image files to disk
For i As Integer = 0 To filteredImages.Length - 1
filteredImages(i).SaveAs($"{i}_barcode.png")
Next i
' Or
results.ExportFilterImagesToDisk("filter-result.jpg")
Install-Package BarCode
IronBarcode提供了許多影像預處理濾鏡供選擇,這些濾鏡很容易在 BarcodeReaderOptions 中套用。 選擇可以改善影像讀取效果的濾鏡,例如Sharpen 、二值閾值和Contrast 。 請記住,您選擇它們的順序是它們實際應用的順序。
可以選擇保存應用每個濾波器後的中間影像的影像資料。 這可以透過 SaveAtEachIteration 屬性或 ImageFilterCollection 屬性進行切換。
精選程式碼範例重點:
BarcodeReaderOptions 的實例,並為其配置了各種圖像過濾器:Binary Threshold 和 Contrast。cacheAtEachIteration 設為 true,該程式庫會在每次應用濾波器後保存中間影像,這對於偵錯和分析很有用。
最後,我們從圖像中讀取條碼,並將條碼類型和值列印到控制台。using IronBarCode;
using System.Drawing;
/*** CREATING BARCODE IMAGES ***/
// Create and save a barcode in a single line of code
BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8).ResizeTo(400, 100).SaveAsImage("EAN8.jpeg");
/***** IN-DEPTH BARCODE CREATION OPTIONS *****/
// BarcodeWriter.CreateBarcode creates a GeneratedBarcode which can be styled and exported as an Image object or file
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("Any Number, String or Binary Value", BarcodeWriterEncoding.Code128);
// Style the Barcode in a fluent LINQ-style fashion
MyBarCode.ResizeTo(300, 150).SetMargins(20).AddAnnotationTextAboveBarcode("Example EAN8 Barcode").AddBarcodeValueTextBelowBarcode();
MyBarCode.ChangeBackgroundColor(Color.LightGoldenrodYellow);
// Save the barcode as an image file
MyBarCode.SaveAsImage("MyBarCode.png");
MyBarCode.SaveAsGif("MyBarCode.gif");
MyBarCode.SaveAsHtmlFile("MyBarCode.html");
MyBarCode.SaveAsJpeg("MyBarCode.jpg");
MyBarCode.SaveAsPdf("MyBarCode.Pdf");
MyBarCode.SaveAsPng("MyBarCode.png");
MyBarCode.SaveAsTiff("MyBarCode.tiff");
MyBarCode.SaveAsWindowsBitmap("MyBarCode.bmp");
// Save the barcode as a .NET native object
Image MyBarCodeImage = MyBarCode.Image;
Bitmap MyBarCodeBitmap = MyBarCode.ToBitmap();
byte[] PngBytes = MyBarCode.ToPngBinaryData();
using (System.IO.Stream PdfStream = MyBarCode.ToPdfStream())
{
// Stream barcode image output also works for GIF, JPEG, PDF, PNG, BMP and TIFF
}
// Save MyBarCode as an HTML file or tag
MyBarCode.SaveAsHtmlFile("MyBarCode.Html");
string ImgTagForHTML = MyBarCode.ToHtmlTag();
string DataURL = MyBarCode.ToDataUrl();
// Save MyBarCode to a new PDF, or stamp it in any position on any page(s) of an existing document
MyBarCode.SaveAsPdf("MyBarCode.Pdf");
MyBarCode.StampToExistingPdfPage("ExistingPDF.pdf", 200, 50, 1); // Position (200, 50) on page 1
MyBarCode.StampToExistingPdfPages("ExistingPDF.pdf", 200, 50, new[] { 1, 2, 3 }, "Password123"); // Multiple pages of an encrypted PDF
Imports IronBarCode
Imports System.Drawing
'''* CREATING BARCODE IMAGES **
' Create and save a barcode in a single line of code
BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8).ResizeTo(400, 100).SaveAsImage("EAN8.jpeg")
'''*** IN-DEPTH BARCODE CREATION OPTIONS ****
' BarcodeWriter.CreateBarcode creates a GeneratedBarcode which can be styled and exported as an Image object or file
Dim MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("Any Number, String or Binary Value", BarcodeWriterEncoding.Code128)
' Style the Barcode in a fluent LINQ-style fashion
MyBarCode.ResizeTo(300, 150).SetMargins(20).AddAnnotationTextAboveBarcode("Example EAN8 Barcode").AddBarcodeValueTextBelowBarcode()
MyBarCode.ChangeBackgroundColor(Color.LightGoldenrodYellow)
' Save the barcode as an image file
MyBarCode.SaveAsImage("MyBarCode.png")
MyBarCode.SaveAsGif("MyBarCode.gif")
MyBarCode.SaveAsHtmlFile("MyBarCode.html")
MyBarCode.SaveAsJpeg("MyBarCode.jpg")
MyBarCode.SaveAsPdf("MyBarCode.Pdf")
MyBarCode.SaveAsPng("MyBarCode.png")
MyBarCode.SaveAsTiff("MyBarCode.tiff")
MyBarCode.SaveAsWindowsBitmap("MyBarCode.bmp")
' Save the barcode as a .NET native object
Dim MyBarCodeImage As Image = MyBarCode.Image
Dim MyBarCodeBitmap As Bitmap = MyBarCode.ToBitmap()
Dim PngBytes() As Byte = MyBarCode.ToPngBinaryData()
Using PdfStream As System.IO.Stream = MyBarCode.ToPdfStream()
' Stream barcode image output also works for GIF, JPEG, PDF, PNG, BMP and TIFF
End Using
' Save MyBarCode as an HTML file or tag
MyBarCode.SaveAsHtmlFile("MyBarCode.Html")
Dim ImgTagForHTML As String = MyBarCode.ToHtmlTag()
Dim DataURL As String = MyBarCode.ToDataUrl()
' Save MyBarCode to a new PDF, or stamp it in any position on any page(s) of an existing document
MyBarCode.SaveAsPdf("MyBarCode.Pdf")
MyBarCode.StampToExistingPdfPage("ExistingPDF.pdf", 200, 50, 1) ' Position (200, 50) on page 1
MyBarCode.StampToExistingPdfPages("ExistingPDF.pdf", 200, 50, { 1, 2, 3 }, "Password123") ' Multiple pages of an encrypted PDF
Install-Package BarCode
在這個例子中,我們可以看到可以建立、調整大小和保存多種不同類型和格式的條碼; 甚至可能只需要一行程式碼。
利用我們流暢的 API,產生的條碼類別可用於設定邊距、調整大小和註解條碼。 然後,它們可以儲存為影像, IronBarcode會自動根據檔案名稱假定正確的影像類型: GIF、HTML 檔案、HTML 標籤、JPEG、PDF、PNG、TIFF 和 Windows 位圖。
We also have the StampToExistingPdfPage method, which allows a barcode to be generated and stamped onto an existing PDF. 在編輯通用 PDF 文件或透過條碼向文件添加內部識別號碼時,此功能非常有用。
using IronBarCode;
using System;
using System.Drawing;
/*** STYLING GENERATED BARCODES ***/
// BarcodeWriter.CreateBarcode creates a GeneratedBarcode object which allows the barcode to be styled and annotated.
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("Iron Software", BarcodeWriterEncoding.QRCode);
// Any text (or commonly, the value of the barcode) can be added to the image in a default or specified font.
// Text positions are automatically centered, above or below. Fonts that are too large for a given image are automatically scaled down.
MyBarCode.AddBarcodeValueTextBelowBarcode();
MyBarCode.AddAnnotationTextAboveBarcode("This is my barcode");
// Resize, add margins and check final image dimensions
MyBarCode.ResizeTo(300, 300); // Resize in pixels
MyBarCode.SetMargins(0, 20, 0, 20); // Set margins in pixels
int FinalWidth = MyBarCode.Width;
int FinalHeight = MyBarCode.Height;
// Recolor the barcode and its background
MyBarCode.ChangeBackgroundColor(Color.LightGray);
MyBarCode.ChangeBarCodeColor(Color.DarkSlateBlue);
if (!MyBarCode.Verify())
{
Console.WriteLine("Color contrast should be at least 50% or a barcode may become unreadable. Test using GeneratedBarcode.Verify()");
}
// Finally, save the result
MyBarCode.SaveAsHtmlFile("StyledBarcode.html");
/*** STYLING BARCODES IN A SINGLE LINQ-STYLE EXPRESSION ***/
// Create a barcode in one line of code
BarcodeWriter.CreateBarcode("https://ironsoftware.com", BarcodeWriterEncoding.Aztec).ResizeTo(250, 250).SetMargins(10).AddBarcodeValueTextAboveBarcode().SaveAsImage("StyledBarcode.png");
/*** STYLING QR CODES WITH LOGO IMAGES OR BRANDING ***/
// Use the QRCodeWriter.CreateQrCodeWithLogo Method instead of BarcodeWriter.CreateBarcode
// Logo will automatically be sized appropriately and snapped to the QR grid.
var qrCodeLogo = new QRCodeLogo("ironsoftware_logo.png");
GeneratedBarcode myQRCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo);
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen);
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen);
myQRCodeWithLogo.SaveAsPng("QRWithLogo.Png").SaveAsPdf("MyVerifiedQR.html"); // Save as 2 different formats
Imports IronBarCode
Imports System
Imports System.Drawing
'*** STYLING GENERATED BARCODES ***
' BarcodeWriter.CreateBarcode creates a GeneratedBarcode object which allows the barcode to be styled and annotated.
Dim MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("Iron Software", BarcodeWriterEncoding.QRCode)
' Any text (or commonly, the value of the barcode) can be added to the image in a default or specified font.
' Text positions are automatically centered, above or below. Fonts that are too large for a given image are automatically scaled down.
MyBarCode.AddBarcodeValueTextBelowBarcode()
MyBarCode.AddAnnotationTextAboveBarcode("This is my barcode")
' Resize, add margins and check final image dimensions
MyBarCode.ResizeTo(300, 300) ' Resize in pixels
MyBarCode.SetMargins(0, 20, 0, 20) ' Set margins in pixels
Dim FinalWidth As Integer = MyBarCode.Width
Dim FinalHeight As Integer = MyBarCode.Height
' Recolor the barcode and its background
MyBarCode.ChangeBackgroundColor(Color.LightGray)
MyBarCode.ChangeBarCodeColor(Color.DarkSlateBlue)
If Not MyBarCode.Verify() Then
Console.WriteLine("Color contrast should be at least 50% or a barcode may become unreadable. Test using GeneratedBarcode.Verify()")
End If
' Finally, save the result
MyBarCode.SaveAsHtmlFile("StyledBarcode.html")
'*** STYLING BARCODES IN A SINGLE LINQ-STYLE EXPRESSION ***
' Create a barcode in one line of code
BarcodeWriter.CreateBarcode("https://ironsoftware.com", BarcodeWriterEncoding.Aztec).ResizeTo(250, 250).SetMargins(10).AddBarcodeValueTextAboveBarcode().SaveAsImage("StyledBarcode.png")
'*** STYLING QR CODES WITH LOGO IMAGES OR BRANDING ***
' Use the QRCodeWriter.CreateQrCodeWithLogo Method instead of BarcodeWriter.CreateBarcode
' Logo will automatically be sized appropriately and snapped to the QR grid.
Dim qrCodeLogo = New QRCodeLogo("ironsoftware_logo.png")
Dim myQRCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo)
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen)
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen)
myQRCodeWithLogo.SaveAsPng("QRWithLogo.Png").SaveAsPdf("MyVerifiedQR.html") ' Save as 2 different formats
Install-Package BarCode
在這個範例中,我們可以看到,條碼可以使用您選擇的文字或條碼本身的值進行註釋,並且可以使用目標電腦上已安裝的任何字型。如果目標電腦上沒有所需的字體,系統將選擇合適的類似字體。 條碼可以調整大小,可以添加邊距,條碼和背景都可以重新著色。 然後可以將它們儲存為合適的格式。
在最後幾行程式碼中,您可以看到,使用我們流暢的樣式運算符,只需幾行程式碼即可建立和設定條碼樣式,類似於 System.Linq。
using IronBarCode;
GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("1234567890", BarcodeWriterEncoding.Code128);
// Save as a stand-alone HTML file without any image assets
MyBarCode.SaveAsHtmlFile("MyBarCode.html");
// Save as a stand-alone HTML image tag which can be served in HTML files, ASPX or MVC Views. No image assets required, the tag embeds the entire image in its source content
string ImgTag = MyBarCode.ToHtmlTag();
// Turn the image into a HTML/CSS Data URI.
string DataURI = MyBarCode.ToDataUrl();
Imports IronBarCode
Private MyBarCode As GeneratedBarcode = BarcodeWriter.CreateBarcode("1234567890", BarcodeWriterEncoding.Code128)
' Save as a stand-alone HTML file without any image assets
MyBarCode.SaveAsHtmlFile("MyBarCode.html")
' Save as a stand-alone HTML image tag which can be served in HTML files, ASPX or MVC Views. No image assets required, the tag embeds the entire image in its source content
Dim ImgTag As String = MyBarCode.ToHtmlTag()
' Turn the image into a HTML/CSS Data URI.
Dim DataURI As String = MyBarCode.ToDataUrl()
Install-Package BarCode
IronBarcode有一個非常有用的功能,可以將條碼匯出為獨立的 HTML,這樣它就沒有關聯的圖像資源。 所有內容都包含在HTML檔案中。
我們可以將內容匯出為HTML 檔案、 HTML 圖片標籤或資料 URI 。
在這個例子中:
BarcodeWriter.CreateBarcode 建立條碼,指定輸入資料和編碼類型。ToHtmlTag() 產生一個 HTML <img> 標籤,該標籤可以嵌入網頁。 ToDataUri() 建立一個資料 URI 字串,該字串可用作 <img> 標籤的來源,或幾乎任何需要圖像 URL 的地方。 SaveAsHtmlFile() 將條碼儲存為獨立的 HTML 文件,其中包含所有圖像數據,使其便於攜帶和共享。
IronBarcode 的 .NET 條碼資源庫可以讀取 BarcodeEncoding Enumb 中的任何類型條碼。它能夠識別 .NET Core、.NET Standard 和 .NET Framework 中的條碼。
為了節省時間並提高庫存工作流程效率,IronBarcode 建議使用一維(1D)或線性條碼,這包括像 UPC 和 EAN 代碼這樣的傳統且已建立的條碼類型。全球的銷售點服務通常使用 UPC(通用產品代碼)條碼(包括其變體 UPC-A 和 UPC-E)。這使得目標消費者更容易在倉庫和結帳處識別和跟蹤產品特徵。UPCA 僅限於擁有 12 到 13 位數字的數字內容,而 UPCE 則支持 8 到 13 位數字的內容。
像 UPC 一樣,歐洲市場使用 EAN 條碼標籤消費品進行銷售點掃描。其變體包括 EAN-13 作為默認選擇,而 EAN-8 則適用於包裝空間有限的產品,例如糖果。除此之外,作為高密度條碼,EAN-13 可以緊湊地編碼較大的數據集。
1D 條碼不僅如此。
汽車和國防行業使用 Code 39 條碼。其名稱說明了其可以編碼 39 個字符的能力(現已修訂為 43 個)。同樣地,Code 128 字符集和高數據密度。繼續談物流,包裝行業更喜歡 ITF(交錯二值碼)條碼標籤包裝材料,例如瓦楞紙板,因為它們具有較高的印刷公差。而 MSI 更適合產品識別和庫存管理。
醫藥行業利用藥品二元編碼。而 RSS 14(減少空間的符號學)和 Databar 條碼是 1D 和 2D 條碼的混合體。這是醫療保健的最愛,以標記小物品。類似於 Code 128 條碼,Codabar 也受到物流和醫療保健行業的喜愛。它可以在沒有計算機的情況下工作,可從點陣打印機輸出中讀取。
2D 條碼包括 Aztec、Data Matrix、Data Bar、IntelligentMail、Maxicode、QR code。根據不同行業的使用,Aztec 在運輸行業中用於機票和登機牌,並且在較低的分辨率下也可讀。儘管 IntelligentMail 僅限於美國郵政中的特定用途,但 Maxicode 則用於標準化運輸跟蹤。
在所有條碼中最廣為人知的是 QR code。由於其靈活性,容錯率,可讀性,和支持多種數據類型(如數字,字母數字,字節/二進制和漢字),它具有大量用途,包括 B2B 和 B2C。
一旦確定了類型,IronBarcode — 領先的條碼生成器便開始接手!
困難於 .NET 中的各種條碼類型讀取現在變得輕如鴻毛,使用 IronBarcode 的多功能、先進和高效的資源庫。
由於 IronBarcode 促進了各種條形碼類型和格式的創建、調整大小和保存,因此沒有理由不立即開始使用它!
使用 Fluent API,使用生成的條形碼類設置邊距、調整大小和註釋條形碼。然後使用 IronOCR 將其保存為圖像,自動根據文件名假設正確的圖像類型。不論是 GIF、HTML 文件、HTML 標籤、JPEG、PNG、TIFF 和 Windows 位圖。
StampToExistingPdfPage 方法允許生成條形碼並將其蓋印到現有 PDF 上。當編輯一般 PDF 或通過條形碼將內部識別號添加到文檔時,它非常有用。
立即與全天候 24/7 的人工支持聯繫。無論您有任何問題或需要項目支持;首先使用我們的 30 天試用金鑰,受益於我們的廣泛文檔資源,使用易於理解的英語,或從 749 美元起受益於我們的終身許可。
C# .NET 條形碼 QR
查看 Frank 如何在他的 C# .NET 條碼應用中使用 IronBarcode 從掃描、照片和 PDF 文檔中讀取條碼……
查看 Frank 的條碼閱讀教程
C# .NET 條形碼
Francesca 分享了一些在 C# 或 VB 應用程式中將條碼寫入圖像的提示和技巧。了解如何寫入條碼和 IronBarcode 提供的所有選項……
查看 Francesca 的條碼教程
QR .NET C# VB
Jenny 的團隊每天使用 IronBarcode 寫入數千個 QR。查看他們的教程以充分利用 IronBarcode……
Jenny 團隊的 QR 編寫教程
Iron 的團隊有超過 10 年的 .NET 軟件組件市場經驗。