C# + VB.NET: バーコードクイックスタート バーコードクイックスタート
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
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");

Image myBarcodeImage = myBarcode.Image; // Can be used as Image
Bitmap myBarcodeBitmap = myBarcode.ToBitmap(); // Can be used as Bitmap
Imports IronBarCode
Imports System.Drawing

' Reading a barcode is easy with IronBarcode!
Private resultFromFile = BarcodeReader.Read("file/barcode.png") ' From a file
Private resultFromBitMap = BarcodeReader.Read(New Bitmap("barcode.bmp")) ' From a bitmap
Private resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")) ' From an image
Private resultFromPdf = BarcodeReader.ReadPdf("file/mydocument.pdf") ' From PDF use ReadPdf

' To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
Private myOptionsExample = New BarcodeReaderOptions With {
	.Speed = ReadingSpeed.Balanced,
	.ExpectMultipleBarcodes = True,
	.ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
	.Multithreaded = True,
	.MaxParallelThreads = 2,
	.CropArea = New Rectangle(),
	.UseCode39ExtendedMode = True
}

' Read with the options applied
Private results = BarcodeReader.Read("barcode.png", myOptionsExample)

' Create a barcode with one line of code
Private 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")

Dim myBarcodeImage As Image = myBarcode.Image ' Can be used as Image
Dim myBarcodeBitmap As Bitmap = myBarcode.ToBitmap() ' Can be used as Bitmap

IronBarcode は、画像ファイルから様々な標準フォーマットをサポートしています。(jpeg、png、jpg)変数をビットマップなどで渡したいプログラム的な形式に、より多く対応するためです。また、外部形式としてPDFをサポートしており、IronBarcodeがシームレスに統合されます。

任意のコードベースで、ファイル形式や変数に柔軟性を持たせ、開発者に自由度を提供します。

IronBarcodeは、すべてのファイル形式に対応したバーコードリーダーであるだけでなく、EAN8Code128Code39など、すべての標準的なエンコーディングとフォーマッティングをサポートするバーコードジェネレーターとしても機能します。 バーコードジェネレーターのセットアップは、わずか2行のコードで行えます。 参入障壁が低く、開発者向けの多くのカスタマイズオプションを備えたIronBarcodeは、バーコードに関するすべての状況での第一の選択肢です。

バーコードライター

まず、IronBarCodeSystem.Drawingをインポートし、BarcodeWriterをインスタンス化して、文字列値12345、フォーマットEAN8でバーコードを作成します。 次に、生成されたバーコードを希望のフォーマットで画像として保存します。 IronBarcodeは、バーコードをImageとして作成することも、Bitmapとして作成することもサポートしているため、これにはさまざまなオプションがあります。

Advanced BarcodeWriter

上級バコォードライター

上記の通り、IronBarcodeを使用してバーコードを生成するには、わずか2行のコードが必要で、後で使用するためにファイルとして保存します。 IronBarcodeはさらにこれを拡張し、開発者にバーコードを状況に合わせてカスタマイズするための多くのオプションを提供します。

バーコード画像のサイズを変更するために、ResizeTo メソッドを使用して高さと幅を渡すことができます。

バーコードリーダー

上記と同様に、まず BarcodeReader をインスタンス化し、ファイルパスを Read メソッドに渡し、後で使用およびバーコードオブジェクトを操作するために変数として保存します。 ReadPDF を使用して PDF などの外部フォーマットを読み取るための指定されたメソッドがあります。 しかし、一般的な画像形式やビットマップに対しては、Read を使用します。

バーコードリーダーオプション

IronBarcodeを使用すると、開発者は標準ファイル形式からバーコードをスキャンできます。 しかし、特にバーコードファイルのバッチをプログラムで読み取る場合、開発者がReadメソッドの動作を微調整したいと考える状況があります。 ここで BarcodeReaderOptions が登場します。 IronPDFを使用すると、Speedで読み取り速度を完全にカスタマイズでき、ファイルに複数のバーコードが期待されるかどうかをExpectedMultipleBarcodesで設定し、どの種類のバーコードかをExpectBarcodeTypesプロパティで指定することができます。 開発者が複数のスレッドを使用して、複数の画像から並行してバーコードを読み取ることができ、並列読み取り時に使用されるスレッド数を設定可能です。

これらはIronBarcodeの強力さを示すプロパティの一部にすぎません。完全なリストについては、ドキュメントを参照してください。これ 例やサンプルコード、ファイルを含むハウツーガイドをご覧になるには、こちらをクリックしてください。

C# + VB.NET: 不完全なバーコードと画像補正 不完全なバーコードと画像補正
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")

IronBarcodeは、BarcodeReaderOptions内で簡単に適用できる多くの画像前処理フィルターを提供しています。 画像の読み取りを向上させる可能性のあるフィルターを選択してください。例えば、シャープ化バイナリしきい値コントラストがあります。 選択の順序はそのまま適用される順序であることを忘れないでください。

各フィルターが適用された中間画像のイメージデータを保存するオプションがあります。 これは、ImageFilterCollectionSaveAtEachIteration プロパティで切り替えることができます。

C# + VB.NET: バーコード画像の作成 バーコード画像の作成
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

この例では、さまざまな種類と形式のバーコードを作成し、サイズを変更して保存できることがわかります。 コードの1行で実現することも可能です。

流暢なAPIを使用して、生成されたバーコードクラスでマージンの設定、サイズ変更、およびバーコードへの注釈を追加できます。 それらは、IronBarcodeを使用して、ファイル名から正しい画像タイプを自動で判断し、画像として保存できます: GIF、HTMLファイル、HTMLタグ、JPEG、PDF、PNG、TIFF、Windows Bitmap

また、既存のPDFにバーコードを生成してスタンプすることができる StampToExistingPdfPage メソッドもあります。 これは、一般的なPDFを編集したり、バーコードで書類に内部識別番号を追加したりする場合に便利です。

C# + VB.NET: バーコードスタイリング&アノテーション バーコードスタイリング&アノテーション
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", new Font(new FontFamily("Arial"), 12, FontStyle.Regular, GraphicsUnit.Pixel), Color.DarkSlateBlue);

// 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.
Private 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", New Font(New FontFamily("Arial"), 12, FontStyle.Regular, GraphicsUnit.Pixel), Color.DarkSlateBlue)

' 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 As 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

このサンプルでは、バーコードに任意のテキストやバーコード自身の値を、ターゲットマシンにインストールされている任意のフォントを使用して注釈付けすることができます。そのフォントが利用できない場合は、適切な類似フォントが選択されます。 バーコードはサイズ変更が可能で、マージンを追加したり、バーコードおよび背景の再着色もできます。 それから、適切な形式で保存することができます。

コードの最後の数行では、流暢なスタイルのオペレーターを使用することで、System.Linqと同様に、わずか数行のコードでバーコードを作成およびスタイル設定することが可能であることがわかります。

C# + VB.NET: バーコードをHTMLとしてエクスポート バーコードをHTMLとしてエクスポート
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()

IronBarcodeには、関連する画像アセットがなく、自己完結型のHTMLとしてバーコードをエクスポートできる非常に便利な機能があります。 すべてはHTMLファイル内に含まれています。

次の形式でエクスポートできます:HTMLファイルHTML画像タグ、またはデータURI

Human Support related to .NET バーコード ライブラリ

開発チームによる直接サポート

製品、統合、ライセンスに関するご質問がある場合、Iron製品開発チームがお客様のご質問に対応いたします。Ironと連絡を取り、プロジェクトでライブラリを最大限に活用するための対話を始めましょう。

質問する
Recognizes Barcode Qr related to .NET バーコード ライブラリ

.NET Core、.NET Standardおよび.NET Frameworkで1Dおよび2Dバーコードを認識します。

IronBarcode .NETのバーコードライブラリは、BarcodeEncoding Enum内のあらゆるタイプのバーコードを読み取ります。それは、.NET Core、.NET Standard、および.NET Frameworkでバーコードを認識します。

在庫ワークフローの効率を向上させるために、IronBarcodeはUPCやEANコードなどの伝統的で確立されたバーコードを含む1次元(1D)または線形バーコードを推奨します。世界中の販売時点サービスでは通常、UPC(ユニバーサル商品コード)バーコード(そのバリエーションであるUPC-AおよびUPC-Eを含む)を使用します。これは、倉庫やレジでの製品特徴を簡単に特定して追跡できるようにすることで、消費者に利益をもたらします。UPCAは12から13桁の数字コンテンツに限定されていますが、UPCEは8から13桁のコンテンツをサポートします。

UPCと同様に、ヨーロッパ市場はPOSスキャニング用に消費財にEANバーコードを使用しています。そのバリエーションにはEAN-13がデフォルトとして含まれ、限られた包装スペース(キャンディのような)にはEAN-8が使用されます。それらの柔軟性に加えて、高密度バーコードとして、EAN-13はより大きなデータセットをコンパクトにエンコードします。

1Dバーコードはそこでは終わりません。

自動車および防衛産業ではCode 39バーコードを利用します。そのタイトルは39文字(現在は43文字に改訂)のエンコード能力を説明しています。同様に、Code 128は文字セットと高いデータ密度を持っています。物流を続けて、包装業界はITF(インタリーブ 2 of 5)バーコードを段ボール紙などの包装材料にラベル貼りするために好んで使用します。印刷許容度が高いためです。一方で、MSIは製品識別と在庫管理に好まれます。

製薬業界ではPharmaceutical Binary Codeを利用します。一方、RSS 14(Reduced Space Symbologies)およびDatabarバーコードは1Dと2Dバーコードのハイブリッドです。これは小さなアイテムにマーキングするためのヘルスケアの好物です。Code 128バーコードと同様に、Codabarは物流および医療の好物でもあります。それはコンピュータなしで動作し、ドットマトリックプリンタ出力から読み取れます。

2Dバーコードには、Aztec、Data Matrix、Data Bar、IntelligentMail、Maxicode、QRコードが含まれます。さまざまな業界で使用されており、Aztecは低解像度での可読性を持つ交通産業のチケットや搭乗券で使用されます。一方、IntelligentMailは米国郵便に特定目的で限定されており、Maxicodeは出荷追跡の標準化に利用されます。

バーコードの中で最も広く知られているのはQRコードです。その柔軟性、誤り訂正、可読性、数字、英数字、バイト/バイナリ、漢字などのさまざまなデータサポートにより、B2BからB2Cまでの多くの目的に使用されています。

タイプが決まると、IronBarcode - リーディングなバーコード生成ツールが引き継ぎます!

完全な機能リストを見る
Fast And Polite Behavior related to .NET バーコード ライブラリ

.NET Barcode Readerでバーコード生成および読み取りプロジェクトを開始しましょう

.NETでのバーコードタイプの読み取りは、IronBarcodeの多用途で高度かつ効率的なライブラリを使用することで簡単になりました。

どこから始めますか?

IronBarcodeのNuGetパッケージをインストールするか、DLLをプロジェクトまたはグローバルアセンブリキャッシュに手動でインストールしてください。これで、C#バーコード画像スキャナーアプリケーションを一行のコードで作成する一歩手前です。バーコード画像、値、エンコーディングタイプ、バイナリデータ(ある場合)を抽出し、そのすべてをコンソールに出力できます。

TryHarder - 傾いたバーコードフォーマットのより深いスキャン

QuicklyReadOneBarcodeメソッドにIronBarcodeのTryHarder変数を追加すると、時間がかかりますが、隠された、傾いた、または破損したQRコード画像フォーマットをより詳しく分析するために、アプリケーションがさらに努力します。

複数のフォーマットを自由に指定

探しているバーコードエンコーディングを指定するか、複数のフォーマットを指定することができます。IronBarcodeは無制限のバーコード分析ツールを提供します。

バーコード読み取りのパフォーマンスと精度を向上させることができます。パイプ文字または「Bitwise OR」で同時に複数のバーコードフォーマットを指定でき、BarcodeReader.ReadASingleBarcodeメソッドを使用してより具体的かつ高品質な読み取りを実現できます。

PDFドキュメントのバーコードを読み取る、スキャンからマルチスレッドへ

次のプロジェクトがスキャンされたPDFドキュメントを読み取り、すべての1Dバーコードを探すことである場合でも、IronBarcodeは期待を裏切りません。これは、単一のドキュメントから単一のバーコードを読み取るのと似ていますが、追加でバーコードが属するページ番号に関する情報があります。

同様に、マルチフレームTIFFからも同じ結果が得られます。この点ではPDFと同様に扱われます。

マルチスレッドが面倒ですか?もしそうなら、IronBarcodeでサポートされています!

複数のドキュメントを読み取るには、ドキュメントのリストを作成し、BarcodeReader.ReadBarcodesMultithreadedメソッドを使用することで、IronBarcodeでより良い結果を得られます。これは複数のスレッドおよび潜在的にすべてのCPUコアを使用してバーコードスキャンプロセスを行うため、1つずつバーコードを読み取るよりも指数的に速くなります。

不完全な画像を心配するのは完全なバーコードジェネレーターがある今では過去のこと

現実の世界では、ユーザーは完璧ではないスクリーンショットやPNG画像、写真のバーコードをスキャンしたいと思うかもしれません。従来のオープンソース.NETバーコードジェネレーターおよびリーダーライブラリでは、不完全な画像フォーマットを読み取ることは不可能です。しかし、IronBarcodeを使用するとこれが非常に簡単に行えます。

QuicklyReadOneBarcodeメソッドのTryHarderは不完全なデジタルサンプルからのバーコード読み取りを行い、IronBarcodeが自動補正を行います。

写真、スキャン、およびサムネイル

写真が傾いている場合、特定のバーコード回転と画像補正を設定して、携帯電話のカメラで一般的に期待されるデジタルノイズ、傾き、視点、および回転を修正します。

同様に、スキャンされたPDFからQRコードやPDF-417バーコードを読み取るには、バーコード回転補正と画像補正の適切なレベルを設定してドキュメントを軽くクリーンにする必要があります。ただし、過度に指定してパフォーマンスを損なわないように注意が必要です。

破損したバーコードサムネイルを持っている場合、IronBarcodeリーダーメソッドは自動的に小さすぎるバーコード画像を検出し、それらをアップスケールし、サムネイル化に伴うすべてのデジタルノイズをクリーンにし、再び読み取り可能にします。

開発者にとってこれ以上簡単になることはありませんでした!

詳しくはこちら
Built For Dot Net related to .NET バーコード ライブラリ

.NET Coreプロジェクトでの簡単な使用のために構築されています。

数行のコードで数分で開始できます。.NET Core、.NET Standard、および Framework 用に構築され、依存関係なしで32ビットおよび64ビットをサポートする、使いやすい単一DLLです。.NET言語で使用可能。Web、クラウド、デスクトップ、またはコンソールアプリケーションで使用でき、モバイルおよびデスクトップデバイスをサポートします。ソフトウェア製品はこのリンクからダウンロードできます。

.NET向けに構築された C#, QRコード

今すぐ始める
Write Barcodes related to .NET バーコード ライブラリ

IronBarcodeの概要 - バーコード画像の作成と操作

IronBarcodeは、さまざまなバーコードタイプとフォーマットの作成、サイズ変更、保存を容易にするため、今すぐ始める理由があります!

Fluent APIを使用して、生成されたバーコードクラスを使用して余白を設定し、サイズを変更し、バーコードに注釈を付けます。次に、ファイル名から自動的に正しい画像形式を仮定するIronOCRで画像として保存します。それがGIF、HTMLファイル、HTMLタグ、JPEG、PNG、TIFF、Windowsビットマップのいずれであってもです。

StampToExistingPdfPageメソッドを使用すると、バーコードを生成して既存のPDFにスタンプできます。汎用PDFを編集する際や、ドキュメントにバーコードを介して内部識別番号を追加する際に便利です。

今すぐ24時間365日対応のライブサポートスタッフと接続してください。質問がある場合やプロジェクトのサポートが必要な場合は、30日間の試用キーから始め、分かりやすい英語の幅広いドキュメントリソースを活用し、または$749からの永久ライセンスをご利用ください。

詳しくはこちら
サポート:
  • .NET Core 2.0 以上
  • .NET Framework 4.0 以降のバージョンはC#、VB、F#をサポートしています
  • マイクロソフト・ビジュアル・スタジオ. .NET開発IDEアイコン
  • Visual Studio 用 NuGet インストーラーサポート
  • JetBrains ReSharper C# 言語アシスタント対応
  • Microsoft Azure C# .NET ホスティングプラットフォーム互換

ライセンスおよび価格設定

無料のコミュニティ開発ライセンス。商用ライセンスは$749から。

プロジェクトC# + VB.NETライブラリライセンス

プロジェクト

C# + VB.NET ライブラリの開発者向けライセンス

開発者

組織 C# + VB.NET ライブラリライセンス

組織

エージェンシー C# + VB.NET ライブラリ ライセンス

エージェンシー

SaaS C# + VB.NET ライブラリのライセンス販売

SaaS

OEM C# + VB.NET ライブラリライセンス

OEM (オーイーエム)

すべてのライセンスオプションを表示  

C# & VB .NET向けのBarcode & QRチュートリアル

チュートリアル + コード例 C# | .NETでバーコードを読み取るチュートリアル

C# .NET バーコード QR

フランク・ウォーカー .NETプロダクトデベロッパー

バーコードとQRコードの読み取り | C# VB .NET チュートリアル

フランクがどのようにIronBarcodeを使用して、彼のC# .NETバーコードアプリケーション内でスキャン、写真、およびPDFドキュメントからバーコードを読み取るかを見てみましょう...

フランクのバーコードリーディングチュートリアルを見る
C# & VB.NETでバーコードを作成するチュートリアル+コード例

C# .NET バーコード

フランチェスカ・ミラー ジュニア .NET エンジニア

C# または VB.NET でバーコード画像を生成する

フランチェスカは、C#またはVBアプリケーションでバーコードを画像に書き込むためのヒントとコツを共有します。IronBarcodeを使用してバーコードを書き込む方法と利用可能なすべてのオプションをご覧ください...

フランチェスカのバーコードチュートリアルをご覧ください
チュートリアル + コード例 VB.NET PDFの作成と編集 | VB.NET & ASP.NET PDF

QR .NET C# VB

ジェニファー・ライト アプリケーションアーキテクチャリード

C#およびVB .NETアプリケーションでQRコードを作成するためのチュートリアル

ジェニーのチームは、IronBarcodeを使用して1日に数千ものQRコードを生成しています。IronBarcodeを最大限に活用するための彼らのチュートリアルをご覧ください…

ジェニーのチームによるQR作成チュートリアル
何千人もの開発者がIronBarcodeを使用しています...

会計および金融システム

  • # レシート
  • # レポーティング
  • # 請求書の印刷
ASP.NET会計および財務システムにPDFサポートを追加

ビジネスデジタル化

  • # ドキュメント
  • # 注文およびラベリング
  • # ペーパー置換
C# ビジネスデジタル化のユーザーケース

エンタープライズコンテンツ管理

  • # コンテンツ制作
  • # ドキュメント管理
  • # コンテンツ配信
.NET CMS PDFサポート

データおよびレポート作成アプリケーション

  • # パフォーマンストラッキング
  • # トレンドマッピング
  • # レポート
C# PDFレポート
Iron Software企業.NETコンポーネント開発者

数千の企業、政府機関、中小企業、および開発者がIron Software製品を信頼しています。

Ironのチームは、.NETソフトウェアコンポーネント市場で10年以上の経験を有しています。

アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン
アイアンカスタマーアイコン