IRONSOFTWAREHOME
バーコードクイックスタート
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
NuGet Download
PM > Install-Package BarCode
バーコードクイックスタート

バーコードクイックスタート

IronBarcodeは、画像ファイル(jpeg、png、jpg)から、変数を渡したいプログラム的なフォーマットまで、さまざまな標準フォーマットをサポートしています。さらに、PDFなどの外部形式もサポートしており、IronBarcodeをあらゆるコードベースにシームレスに統合し、開発者にファイル形式と変数の柔軟性を提供します。

IronBarcodeはすべてのファイル形式に対応したバーコードリーダーとしてだけでなく、Code39などの標準エンコーディングとフォーマットをサポートするバーコード生成機能も兼ねています。 バーコードジェネレータのセットアップには、わずか2行のコードを必要とします。 参加のバリアが低く、多くのカスタマイズオプションを開発者に提供するIronBarcodeは、バーコードに関連するすべての状況においてナンバーワンの選択肢です。

C# でのバーコード リーダーとバーコード ジェネレーター

  1. var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeEncoding.EAN8);.
  2. Image myBarcodeImage = myBarcode.ToImage();
  3. myBarcode.ResizeTo(400, 100);.
  4. var resultFromFile = BarCodeReader.Read(@"file/barcode.png");.
  5. var myOptionsExample = new BarcodeReaderOptions { /* Options */ };

バーコードライター

まず、必要なライブラリ、例えば12345を持つバーコードを作成します。 その後、生成されたバーコードを希望するフォーマットで画像として保存します。 IronBarcodeは、バーコードをBitmapとして作成することをサポートしているため、さまざまなオプションがあります。

高度なバーコードライター

上記の通り、IronBarcodeを使用してバーコードを生成するには、たった2行のコードで、後で利用するためにファイルとして保存します。 IronBarcodeはさらに、状況に応じてカスタマイズできるオプションの数々を開発者に提供します。

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

バーコードリーダー

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

BarcodeReaderOptions

IronBarcodeは、標準ファイル形式からバーコードをスキャンすることを開発者に可能にします。 しかし、開発者がBarcodeReaderOptionsメソッドの動作を微調整したい状況があり、特にプログラムでバーコードファイルのバッチを読み取る場合です。 このときBarcodeReaderOptionsが登場します。 IronBarcodeは、ExpectBarcodeTypesで完全にカスタマイズすることができます。 これにより、開発者は複数のスレッドを使用して複数の画像からバーコードを並行して読み取ることができ、並行読み取り時に使用するスレッドの数を制御することができます。

これらは、IronBarcodeの力を示すプロパティのいくつかに過ぎません。 完全なリストについては、ドキュメントを参照してください。

詳細ガイドでバーコードの作成方法を学びましょう! Read

GitHubで見る

準備はできましたか?

Nuget Downloads 2,422,100バージョン:2026.9リリースされたばかり

Key in blue circle

無料の30日間トライアルキーをすぐに入手してください。

Your trial license will be sent to your email address

制限なし。100% ロック解除済み。クレジットカード不要。

bullet_checkedクレジットカードやアカウントの作成は不要です。制限なし。100% ロック解除済み。クレジットカード不要。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
無料のライブデモを予約する
Booking Badge

世界中の数百万人のエンジニアから信頼されています。

ライセンスはより安く
義務のない相談を受ける
下記のフォームを記入するか、sales@ironsoftware.comにメールしてください。
あなたの詳細は常に守秘されます。
世界中の数百万人のエンジニアから信頼されています。
ライセンスはより安く
あなたの無料30日間の試用キーをすぐに入手。
クレジットカードやアカウントの作成は不要です。