フッターコンテンツにスキップ
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
Install-Package BarCode

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

全てのファイルフォーマットのバーコードリーダーであることに加えて、IronBarcodeは全ての標準エンコーディングとフォーマットをサポートするバーコードジェネレータとしても機能します。例えば、EAN8Code128、および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 */ };
### バーコードライター 最初に`IronBarCode`や`System.Drawing`のような必要なライブラリをインポートし、文字列値`12345`でフォーマット`EAN8`のバーコードを作成するために`BarcodeWriter`をインスタンス化します。 その後、生成されたバーコードを希望するフォーマットで画像として保存します。 これには様々なオプションがあり、IronBarcodeは`Image`や`Bitmap`としてバーコードを作成することをサポートしています。 #### 高度なバーコードライター 上記からわかるように、IronBarcodeを使用してバーコードを生成するにはわずか2行のコードだけで済み、その後使用のためにファイルとして保存します。 IronBarcodeはさらに、バーコードを状況に合わせてカスタマイズするための豊富なオプションを開発者に提供することでこれを拡張します。 `ResizeTo`メソッドを使用し、高さと幅を渡してバーコード画像のサイズを変更できます。 ### バーコードリーダー 上記のように最初に`BarcodeReader`をインスタンス化し、`Read`メソッドにファイルパスを渡し、後で使用するために変数として保存してバーコードオブジェクトを操作します。 指定された方法があり、`ReadPDF`を使用してPDFのような外部フォーマットを読み取ります; しかし、一般的な画像フォーマットやビットマップの場合は、`Read`を使用します。 #### BarcodeReaderOptions IronBarcodeは標準ファイルフォーマットからバーコードをスキャンすることを開発者に許可します。 しかし、`Read`メソッドの動作を微調整したい場面があり、とくにプログラム的にバーコードファイルのバッチを読み取る場合においてです。 ここで`BarcodeReaderOptions`が登場します。 IronBarcodeでは、読み取り速度を`Speed`で設定したり、ファイルに複数のバーコードが予想されるかどうかを`ExpectedMultipleBarcodes`で指定したり、どのような種類のバーコードであるかを`ExpectBarcodeTypes`プロパティで制御することなど、完全にカスタマイズできます。 これにより、開発者は複数のスレッドを使用して複数の画像からバーコードを並行して読み取ることができ、並行読み取り時に使用するスレッドの数を制御することができます。 これらはIronBarcodeの力を示す特性のほんの一部です。 完全なリストについては、[ドキュメント](https://ironsoftware.com/csharp/barcode/object-reference/api/IronBarCode.BarcodeReaderOptions.html)を参照してください。 詳細なガイドでバーコードの作成を学びましょう!

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")
Install-Package BarCode

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

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

コード例の主要ポイント:

  • BarcodeReaderOptionsのインスタンスを作成し、シャープバイナリしきい値コントラストとさまざまな画像フィルターで設定します。
  • フィルターは特定の順序で追加され、適用されるべき順序を示します。
  • cacheAtEachIterationtrueに設定することで、ライブラリは各フィルター適用後に中間画像を保存し、デバッグや分析に役立ちます。
  • 最後に、画像からバーコードを読み取り、バーコードの種類と値をコンソールに出力します。

IronBarcodeでの画像補正についてさらに学ぶ

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
Install-Package BarCode

この例では、さまざまな種類と形式のバーコードが作成、サイズ変更、保存できることがわかります。 おそらく、一行のコードで。

私たちの流暢なAPIを使用すると、生成されたバーコードクラスを使用して、マージンを設定し、サイズ変更し、注釈を付けることができます。 その後、これらは画像として保存され、IronBarcodeがファイル名から自動的に適切な画像タイプを仮定します:GIF、HTMLファイル、HTMLタグ、JPEG、PDF、PNG、TIFF、およびWindowsビットマップ

また、StampToExistingPdfPage メソッドもあり、既存のPDFにバーコードを生成してスタンプすることができます。 これは、一般的な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
Install-Package BarCode

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

コードの最後の数行で、私たちの流暢なスタイルオペレーターを使用すると、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()
Install-Package BarCode

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

私たちはHTMLファイルHTML画像タグ、またはデータURIとしてエクスポートすることができます。

この例では:

  • BarcodeWriter.CreateBarcodeを使用して、入力データとエンコーディングタイプを指定してバーコードを作成します。
  • その後、IronBarcodeが提供するさまざまなメソッドを使用してバーコードをエクスポートします。
  • ToHtmlTag()は、ウェブページに埋め込むことができるHTML<img>タグを生成します。
  • ToDataUri()は、<img>タグや画像URLが必要なほとんどどこにでも使用できるデータURI文字列を作成します。
  • SaveAsHtmlFile()は、バーコードをスタンドアロンのHTMLファイルとして保存し、すべての画像データをインラインで含め、持ち運び可能で共有しやすくします。

Human Support related to C# QRコードライブラリ

当社の開発チームからの直接的な人間サポート

製品、統合、またはライセンスの問い合わせであろうと、Ironの製品開発チームはすべての質問に対応します。Ironと対話を始め、このライブラリをプロジェクトで最大限に活用してください。

質問をする
Recognizes Barcode Qr related to C# QRコードライブラリ

複数のQRコードタイプを発見

IronBarcode は、UPC A/E、EAN 8/13、Code 39、Code 93、Code 128、ITF、MSI、RSS 14/Expanded、Databar、CodaBar、QR、Styled QR、Data Matrix、MaxiCode、PDF417、Plessey、および Aztec などの大多数のバーコードおよび QR 規格を読み取り、生成します。結果はバーコードデータ、種類、ページ、テキスト、およびバーコード画像を提供し、アーカイブまたはインデックスシステムに最適です。

完全な機能一覧を見る
Fast And Polite Behavior related to C# QRコードライブラリ

画像プリプロセッシングによる高速かつ正確な読み取り

IronBarcode は自動的にバーコード画像を事前処理して速度と精度を向上させます。回転、ノイズ、歪み、傾きを補正して、スキャンまたはライブビデオフレームを読み取ります。バッチ処理サーバーアプリケーションに対応したマルチコア、マルチスレッドに準備ができています。単一および複数ページのドキュメントで1つまたは複数のバーコードを自動的に見つけます。複雑なAPIを必要とせずに特定のバーコードタイプまたはドキュメントの場所を検索します。

さらに詳しく知る
Built For Dot Net related to C# QRコードライブラリ

.NET Core、Standard、Frameworkプロジェクトでの簡単な使用のために構築

数行のコードで数分で始めましょう。依存関係なしで.NET用に簡単に使用できる単一DLLとして構築され、32 & 64ビットをサポートし、任意の.NET言語で使用できます。ウェブ、クラウド、デスクトップ、またはコンソールアプリケーションで使用し、モバイル & デスクトップデバイスをサポートします。

このソフトウェア製品をリンクからダウンロードできます。

QRのために構築 C#, .NET

今すぐ始めよう
Write Barcodes related to C# QRコードライブラリ

QRコードを複数形式で書き込む

PDF、JPG、TIFF、GIF、BMP、PNG、HTML 形式としてファイルまたはストリームに保存または印刷します。色、品質、回転、サイズ、テキストを設定します。C# バーコードプログラミング ツールボックスを IronPDF および IronOCR と一緒に使用して、完全な.NET ドキュメントライブラリを利用します。

さらに詳しく知る
サポート:
  • .NET Core 2.0以上
  • .NET Framework 4.0以上のサポート C#、VB、F#
  • Microsoft Visual Studio. .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用QRコードチュートリアル

C# でバーコードを読むためのチュートリアル + コード例 | .NET チュートリアル

C# .NET バーコード QR

Frank Walker .NET プロダクトデベロッパー

バーコードおよびQRを読み取る | C# VB .NETチュートリアル

Frank が C# .NET バーコードアプリケーション内で IronBarcode を使用してスキャン、写真、PDF ドキュメントからバーコードを読む方法をご覧ください…

Frank のバーコード読み取りチュートリアルを見る
C# & VB.NET でバーコードを書き込むためのチュートリアル + コード例

C# .NET バーコード

Francesca Miller ジュニア .NET エンジニア

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

Francesca は C# または VB アプリケーションで画像にバーコードを書き込むためのいくつかのヒントとコツを共有します。IronBarcode で利用できるすべてのオプションをどのように活用してバーコードを書くかをご覧ください…

Francesca のバーコードチュートリアルを見る
チュートリアル + コード例 VB.NET PDF作成と編集 | VB.NET & ASP.NET PDF

QR .NET C# VB

Jennifer Wright アプリケーションアーキテクチャリーダー

C# & VB .NET アプリケーションで QR コードを書くためのチュートリアル

Jenny のチームは IronBarcode を使って毎日何千もの QR を書いています。IronBarcode を最大限に活用するためのチュートリアルをご覧ください…

Jenny のチームによる QR 書き込みチュートリアル
何千人もの開発者が IronBarcode を使用しています…

会計および財務のシステム

  • # 領収書
  • # 報告
  • # 請求書印刷
ASP.NET会計および財務システムにPDFサポートを追加

ビジネスのデジタル化

  • # ドキュメント
  • # 注文&ラベリング
  • # 用紙の置き換え
C#ビジネスデジタル化のユースケース

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

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

データと報告アプリケーション

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

企業、政府、SME、開発者の何千もがIronソフトウェア製品を信頼しています。

Ironのチームは、.NETソフトウェアコンポーネント市場で10年以上の経験があります。

Iron Customer Icon
Iron Customer Icon
Iron Customer Icon
Iron Customer Icon
Iron Customer Icon
Iron Customer Icon
Iron Customer Icon
Iron Customer Icon