C#でSystem.Drawingからバーコードを読み取る方法
IronBarcodeは、IronDrawingを通じてSystem.Drawingオブジェクトを自動的にAnyBitmapに変換することにより、すべてのオペレーティングシステムでバーコードを読み取ることを可能にし、MicrosoftのSystem.DrawingサポートにおけるWindows専用の制限を解決します。
はじめに
System.Drawingオブジェクトは、.NETで画像処理タスクによく使用されます。 しかし、MicrosoftはMacOSおよびLinuxでのSystem.Drawingのサポートを停止し、現在はWindowsのみのサポートです。 この変更により、非WindowsオペレーティングシステムでIronBarcodeを使用する開発者に問題が生じました。なぜなら、バーコードの作業には通常グラフィックス、画像、フォントが含まれるからです。
この問題に対処するため、私たちはIronDrawingを導入しました。 Iron Softwareによって作られたこの無料かつオープンソースのライブラリは、クロスプラットフォームサポートを簡素化し、スムーズな体験を提供します。 NuGetからIronBarcodeをインストールすると、IronDrawingがプロジェクトに自動的に含まれます。
バーコード読み取りチュートリアルでは、基本的な概念と基本的な使用パターンをカバーしています。 様々な画像形式を扱う場合、画像からバーコードを読む方法に関するガイドは追加のコンテキストと例を提供します。
クイックスタート:AnyBitmapを使用して1行でバーコードを読み取る
このスニペットは、System.Drawing.Bitmapを作成し、IronDrawingによりAnyBitmapに暗黙的にキャストすることで、IronBarcodeがバーコードをどのように読み取るかを示しています。 たった1行で、どのOSの開発者でも迅速に結果を得ることができます。
-
1IronBarcode を NuGet Package Manager でインストールします
-
2このコード スニペットをコピーして実行します。
var results = IronBarCode.BarcodeReader.Read((AnyBitmap)(new System.Drawing.Bitmap("yourImage.png")));Dim results = IronBarCode.BarcodeReader.Read(DirectCast(New System.Drawing.Bitmap("yourImage.png"), AnyBitmap))Dim results = IronBarCode.BarcodeReader.Read(DirectCast(New System.Drawing.Bitmap("yourImage.png"), AnyBitmap)) -
3実際の環境でテストするためにデプロイする
今日からご自身のプロジェクトでIronBarcodeを使い始めるには、無料トライアルをお試しください。
最小限のワークフロー(5ステップ)
System.Drawingからバーコードを読み取るためのC#ライブラリをダウンロードSystem.DrawingオブジェクトをAnyBitmapにキャストするためにIronDrawingを利用AnyBitmapオブジェクトからバーコードを読み取るには、Readメソッドを使用します。- コンソールに検出されたバーコード値を表示する
IronDrawingが色とフォントの処理にどのように使用されているかについては、別の記事を参照してください。
System.DrawingオブジェクトをAnyBitmapにキャストする方法
System.Drawingからバーコードを読み取るには、オブジェクトをAnyBitmapにキャストする必要があります。 IronDrawingは使いやすさを念頭に設計されており、System.DrawingからIronSoftware.Drawing画像オブジェクトであるAnyBitmapに対する画像オブジェクトの暗黙キャストをサポートしています。
System.Drawingオブジェクト以外に、他の型からもキャストをサポートしています:
System.Drawing.BitmapSystem.Drawing.ImageSkiaSharp.SKBitmapSkiaSharp.SKImageSixLabors.ImageSharp
上記のオブジェクトをキャストするためのコード例を参照してください。 以下は、System.DrawingオブジェクトからIronSoftware.Drawing.AnyBitmapへのバーコード画像のキャストを示しています:
キャスト可能なSystem.Drawing型とは?
using IronSoftware.Drawing;
using System.Collections.Generic;
List<AnyBitmap> barcodes = new List<AnyBitmap>();
// Instantiate System.Drawing.Bitmap
System.Drawing.Bitmap bitmapFromBitmap = new System.Drawing.Bitmap("test1.jpg");
// Cast from System.Drawing.Bitmap to AnyBitmap
AnyBitmap barcode1 = bitmapFromBitmap;
barcodes.Add(barcode1);
// Instantiate System.Drawing.Bitmap
System.Drawing.Image bitmapFromFile = System.Drawing.Image.FromFile("test2.png");
// Cast from System.Drawing.Image to AnyBitmap
AnyBitmap barcode2 = bitmapFromFile;
barcodes.Add(barcode2);using IronSoftware.Drawing;
using System.Collections.Generic;
List<AnyBitmap> barcodes = new List<AnyBitmap>();
// Instantiate System.Drawing.Bitmap
System.Drawing.Bitmap bitmapFromBitmap = new System.Drawing.Bitmap("test1.jpg");
// Cast from System.Drawing.Bitmap to AnyBitmap
AnyBitmap barcode1 = bitmapFromBitmap;
barcodes.Add(barcode1);
// Instantiate System.Drawing.Bitmap
System.Drawing.Image bitmapFromFile = System.Drawing.Image.FromFile("test2.png");
// Cast from System.Drawing.Image to AnyBitmap
AnyBitmap barcode2 = bitmapFromFile;
barcodes.Add(barcode2);Imports IronSoftware.Drawing
Imports System.Collections.Generic
Private barcodes As New List(Of AnyBitmap)()
' Instantiate System.Drawing.Bitmap
Private bitmapFromBitmap As New System.Drawing.Bitmap("test1.jpg")
' Cast from System.Drawing.Bitmap to AnyBitmap
Private barcode1 As AnyBitmap = bitmapFromBitmap
barcodes.Add(barcode1)
' Instantiate System.Drawing.Bitmap
Dim bitmapFromFile As System.Drawing.Image = System.Drawing.Image.FromFile("test2.png")
' Cast from System.Drawing.Image to AnyBitmap
Dim barcode2 As AnyBitmap = bitmapFromFile
barcodes.Add(barcode2)Imports IronSoftware.Drawing
Imports System.Collections.Generic
Private barcodes As New List(Of AnyBitmap)()
' Instantiate System.Drawing.Bitmap
Private bitmapFromBitmap As New System.Drawing.Bitmap("test1.jpg")
' Cast from System.Drawing.Bitmap to AnyBitmap
Private barcode1 As AnyBitmap = bitmapFromBitmap
barcodes.Add(barcode1)
' Instantiate System.Drawing.Bitmap
Dim bitmapFromFile As System.Drawing.Image = System.Drawing.Image.FromFile("test2.png")
' Cast from System.Drawing.Image to AnyBitmap
Dim barcode2 As AnyBitmap = bitmapFromFile
barcodes.Add(barcode2)このコードは、System.DrawingオブジェクトとIronBarcodeとの間のIronDrawingを介した簡単な統合を示しています。 この互換性は様々なバーコード形式に対応しており、対応しているバーコード形式ガイドで詳細に説明されています。QRコード、Code 128、Code 39、その他多数。
なぜ暗黙の型変換が機能するのですか?
上記のコードでは、2つのバーコード画像をSystem.Drawing.BitmapとSystem.Drawing.Imageとして読み込みました。 その後、AnyBitmapオブジェクトに割り当てることでAnyBitmapに暗黙キャストし、これらのオブジェクトをAnyBitmapリストに追加しました。
IronDrawingの暗黙キャストメカニズムはオペレーターオーバーロードを使用しており、System.Drawing型とAnyBitmap間の透過的な変換を提供します。 このデザインパターンにより、開発者は既存のコードを維持しながら、クロスプラットフォームの互換性を得ることができます。 変換では、解像度、色深度、ピクセルデータを含むすべての画像プロパティが保持され、品質が損なわれることはありません。
明示的な型変換と暗黙的な型変換はいつ使うべきですか?
暗黙的なキャストは利便性を提供しますが、シナリオによっては明示的なキャストが望ましい場合もあります:
// Implicit casting - clean and simple for straightforward conversions
System.Drawing.Bitmap systemBitmap = new System.Drawing.Bitmap("barcode.png");
AnyBitmap anyBitmap = systemBitmap; // Implicit cast
// Explicit casting - useful when type clarity is important
System.Drawing.Image systemImage = System.Drawing.Image.FromFile("qrcode.jpg");
AnyBitmap explicitBitmap = (AnyBitmap)systemImage; // Explicit cast
// When working with nullable types or conditional logic
System.Drawing.Bitmap? nullableBitmap = GetBitmapFromSource();
if (nullableBitmap != null)
{
AnyBitmap result = (AnyBitmap)nullableBitmap; // Explicit cast for clarity
// Process the barcode
}// Implicit casting - clean and simple for straightforward conversions
System.Drawing.Bitmap systemBitmap = new System.Drawing.Bitmap("barcode.png");
AnyBitmap anyBitmap = systemBitmap; // Implicit cast
// Explicit casting - useful when type clarity is important
System.Drawing.Image systemImage = System.Drawing.Image.FromFile("qrcode.jpg");
AnyBitmap explicitBitmap = (AnyBitmap)systemImage; // Explicit cast
// When working with nullable types or conditional logic
System.Drawing.Bitmap? nullableBitmap = GetBitmapFromSource();
if (nullableBitmap != null)
{
AnyBitmap result = (AnyBitmap)nullableBitmap; // Explicit cast for clarity
// Process the barcode
}Imports System.Drawing
' Implicit casting - clean and simple for straightforward conversions
Dim systemBitmap As New Bitmap("barcode.png")
Dim anyBitmap As AnyBitmap = systemBitmap ' Implicit cast
' Explicit casting - useful when type clarity is important
Dim systemImage As Image = Image.FromFile("qrcode.jpg")
Dim explicitBitmap As AnyBitmap = CType(systemImage, AnyBitmap) ' Explicit cast
' When working with nullable types or conditional logic
Dim nullableBitmap As Bitmap = GetBitmapFromSource()
If nullableBitmap IsNot Nothing Then
Dim result As AnyBitmap = CType(nullableBitmap, AnyBitmap) ' Explicit cast for clarity
' Process the barcode
End IfImports System.Drawing
' Implicit casting - clean and simple for straightforward conversions
Dim systemBitmap As New Bitmap("barcode.png")
Dim anyBitmap As AnyBitmap = systemBitmap ' Implicit cast
' Explicit casting - useful when type clarity is important
Dim systemImage As Image = Image.FromFile("qrcode.jpg")
Dim explicitBitmap As AnyBitmap = CType(systemImage, AnyBitmap) ' Explicit cast
' When working with nullable types or conditional logic
Dim nullableBitmap As Bitmap = GetBitmapFromSource()
If nullableBitmap IsNot Nothing Then
Dim result As AnyBitmap = CType(nullableBitmap, AnyBitmap) ' Explicit cast for clarity
' Process the barcode
End If一般的なキャストエラーは何ですか?
System.DrawingをAnyBitmapに変換する際に、開発者が遭遇する可能性があるのは:
- ヌル参照例外:キャストする前に
System.Drawingオブジェクトがヌルでないことを確認してください - サポートされていない形式の例外: 一部の珍しい画像形式には事前変換が必要
- メモリ問題: 大きな画像には適切な廃棄パターンが必要
キャストの問題に関するトラブルシューティングについては、バーコード認識中の一般的な問題に対する解決策を提供するトラブルシューティングガイドを参照してください。
AnyBitmapオブジェクトからバーコードをどうやって読み取るか?
IronBarcodeは、すべてのメソッドでIronSoftware.Drawing.AnyBitmapオブジェクトを追加の設定なしで受け入れます。 これは非WindowsオペレーティングシステムでSystem.Drawingオブジェクトを使う際に開発を簡素化します。 次のコードはこれを示しています:
AnyBitmapパラメーターを受け入れるメソッドとは?
using IronBarCode;
using IronSoftware.Drawing;
using System;
using System.Collections.Generic;
// Create a list of image file paths to read barcodes from
List<string> barcodeFiles = new List<string>
{
"test1.jpg",
"test2.png"
};
foreach (var barcodeFile in barcodeFiles)
{
// Read the barcode from file path
var results = BarcodeReader.Read(barcodeFile);
foreach (var result in results)
{
// Output the detected barcode value
Console.WriteLine(result.Value);
}
}using IronBarCode;
using IronSoftware.Drawing;
using System;
using System.Collections.Generic;
// Create a list of image file paths to read barcodes from
List<string> barcodeFiles = new List<string>
{
"test1.jpg",
"test2.png"
};
foreach (var barcodeFile in barcodeFiles)
{
// Read the barcode from file path
var results = BarcodeReader.Read(barcodeFile);
foreach (var result in results)
{
// Output the detected barcode value
Console.WriteLine(result.Value);
}
}Imports IronBarCode
Imports IronSoftware.Drawing
Imports System
Imports System.Collections.Generic
' Create a list of image file paths to read barcodes from
Dim barcodeFiles As New List(Of String) From {
"test1.jpg",
"test2.png"
}
For Each barcodeFile In barcodeFiles
' Read the barcode from file path
Dim results = BarcodeReader.Read(barcodeFile)
For Each result In results
' Output the detected barcode value
Console.WriteLine(result.Value)
Next
NextImports IronBarCode
Imports IronSoftware.Drawing
Imports System
Imports System.Collections.Generic
' Create a list of image file paths to read barcodes from
Dim barcodeFiles As New List(Of String) From {
"test1.jpg",
"test2.png"
}
For Each barcodeFile In barcodeFiles
' Read the barcode from file path
Dim results = BarcodeReader.Read(barcodeFile)
For Each result In results
' Output the detected barcode value
Console.WriteLine(result.Value)
Next
Next基本的なReadメソッド以外にも、IronBarcodeはAnyBitmapパラメーターを受け入れるいくつかのメソッドを提供します。 高度なシナリオについては、画像内に複数のバーコードを効率的に処理する方法を示す複数のバーコード読み取りガイドを参照してください。
// Advanced barcode reading with options
var readerOptions = new BarcodeReaderOptions
{
// Specify barcode types to search for
ExpectBarcodeTypes = BarcodeEncoding.QRCode | BarcodeEncoding.Code128,
// Set confidence threshold
ConfidenceThreshold = 0.95
};
// Read with specific options
var advancedResults = BarcodeReader.Read(anyBitmap, readerOptions);// Advanced barcode reading with options
var readerOptions = new BarcodeReaderOptions
{
// Specify barcode types to search for
ExpectBarcodeTypes = BarcodeEncoding.QRCode | BarcodeEncoding.Code128,
// Set confidence threshold
ConfidenceThreshold = 0.95
};
// Read with specific options
var advancedResults = BarcodeReader.Read(anyBitmap, readerOptions);' Advanced barcode reading with options
Dim readerOptions As New BarcodeReaderOptions With {
' Specify barcode types to search for
.ExpectBarcodeTypes = BarcodeEncoding.QRCode Or BarcodeEncoding.Code128,
' Set confidence threshold
.ConfidenceThreshold = 0.95
}
' Read with specific options
Dim advancedResults = BarcodeReader.Read(anyBitmap, readerOptions)' Advanced barcode reading with options
Dim readerOptions As New BarcodeReaderOptions With {
' Specify barcode types to search for
.ExpectBarcodeTypes = BarcodeEncoding.QRCode Or BarcodeEncoding.Code128,
' Set confidence threshold
.ConfidenceThreshold = 0.95
}
' Read with specific options
Dim advancedResults = BarcodeReader.Read(anyBitmap, readerOptions)複数のバーコード結果をどのように処理しますか?
上のコードは、前の例を拡張したものです。 AnyBitmapリストを埋めた後、それを反復処理し、Readメソッドを各AnyBitmapオブジェクトに呼び出し、IronBarcode.BarcodeResultsを返します。 次に、バーコードの値をコンソールに出力するために、結果を反復しました。
複数の BarCode を処理する場合は、並列処理を活用してパフォーマンスを向上させます:
// Parallel processing for multiple barcode images
var barcodeFiles = Directory.GetFiles("barcodes/", "*.png");
var allResults = new ConcurrentBag<BarcodeResult>();
Parallel.ForEach(barcodeFiles, file =>
{
var bitmap = new System.Drawing.Bitmap(file);
var anyBitmap = (AnyBitmap)bitmap;
var results = BarcodeReader.Read(anyBitmap);
foreach (var result in results)
{
allResults.Add(result);
}
bitmap.Dispose(); // Clean up resources
});
// Process all results
foreach (var result in allResults)
{
Console.WriteLine($"Found {result.BarcodeType}: {result.Value}");
}// Parallel processing for multiple barcode images
var barcodeFiles = Directory.GetFiles("barcodes/", "*.png");
var allResults = new ConcurrentBag<BarcodeResult>();
Parallel.ForEach(barcodeFiles, file =>
{
var bitmap = new System.Drawing.Bitmap(file);
var anyBitmap = (AnyBitmap)bitmap;
var results = BarcodeReader.Read(anyBitmap);
foreach (var result in results)
{
allResults.Add(result);
}
bitmap.Dispose(); // Clean up resources
});
// Process all results
foreach (var result in allResults)
{
Console.WriteLine($"Found {result.BarcodeType}: {result.Value}");
}Imports System.IO
Imports System.Collections.Concurrent
Imports System.Drawing
Imports System.Threading.Tasks
' Parallel processing for multiple barcode images
Dim barcodeFiles = Directory.GetFiles("barcodes/", "*.png")
Dim allResults As New ConcurrentBag(Of BarcodeResult)()
Parallel.ForEach(barcodeFiles, Sub(file)
Dim bitmap As New Bitmap(file)
Dim anyBitmap As AnyBitmap = CType(bitmap, AnyBitmap)
Dim results = BarcodeReader.Read(anyBitmap)
For Each result In results
allResults.Add(result)
Next
bitmap.Dispose() ' Clean up resources
End Sub)
' Process all results
For Each result In allResults
Console.WriteLine($"Found {result.BarcodeType}: {result.Value}")
NextImports System.IO
Imports System.Collections.Concurrent
Imports System.Drawing
Imports System.Threading.Tasks
' Parallel processing for multiple barcode images
Dim barcodeFiles = Directory.GetFiles("barcodes/", "*.png")
Dim allResults As New ConcurrentBag(Of BarcodeResult)()
Parallel.ForEach(barcodeFiles, Sub(file)
Dim bitmap As New Bitmap(file)
Dim anyBitmap As AnyBitmap = CType(bitmap, AnyBitmap)
Dim results = BarcodeReader.Read(anyBitmap)
For Each result In results
allResults.Add(result)
Next
bitmap.Dispose() ' Clean up resources
End Sub)
' Process all results
For Each result In allResults
Console.WriteLine($"Found {result.BarcodeType}: {result.Value}")
Next他にどのIronDrawing機能が使えるか?
IronSoftware.Drawing機能は画像のキャストを超えて広がります。 バーコードやQRコードのスタイリングに役立つ色やフォントのような画像処理の側面を扱います。 IronDrawingをどのように利用してQRコードに独自ロゴを追加しカスタマイズしているのかをご覧ください。
IronDrawingは、バーコード処理を補完する強力な画像操作機能を提供します:
// Using IronDrawing to load the image, and IronBarcode's image filters for preprocessing
using IronBarCode;
using IronSoftware.Drawing;
// Load an image before barcode reading
AnyBitmap preprocessedImage = AnyBitmap.FromFile("noisy-barcode.jpg");
// Apply image filters to improve barcode readability
var options = new BarcodeReaderOptions
{
ImageFilters = new ImageFilterCollection
{
new ContrastFilter(1.5f), // Increase contrast
new SharpenFilter() // Sharpen image
}
};
// Read the preprocessed barcode
var improvedResults = BarcodeReader.Read(preprocessedImage, options);// Using IronDrawing to load the image, and IronBarcode's image filters for preprocessing
using IronBarCode;
using IronSoftware.Drawing;
// Load an image before barcode reading
AnyBitmap preprocessedImage = AnyBitmap.FromFile("noisy-barcode.jpg");
// Apply image filters to improve barcode readability
var options = new BarcodeReaderOptions
{
ImageFilters = new ImageFilterCollection
{
new ContrastFilter(1.5f), // Increase contrast
new SharpenFilter() // Sharpen image
}
};
// Read the preprocessed barcode
var improvedResults = BarcodeReader.Read(preprocessedImage, options);' Using IronDrawing to load the image, and IronBarcode's image filters for preprocessing
Imports IronBarCode
Imports IronSoftware.Drawing
' Load an image before barcode reading
Dim preprocessedImage As AnyBitmap = AnyBitmap.FromFile("noisy-barcode.jpg")
' Apply image filters to improve barcode readability
Dim options As New BarcodeReaderOptions With {
.ImageFilters = New ImageFilterCollection From {
New ContrastFilter(1.5F), ' Increase contrast
New SharpenFilter() ' Sharpen image
}
}
' Read the preprocessed barcode
Dim improvedResults = BarcodeReader.Read(preprocessedImage, options)' Using IronDrawing to load the image, and IronBarcode's image filters for preprocessing
Imports IronBarCode
Imports IronSoftware.Drawing
' Load an image before barcode reading
Dim preprocessedImage As AnyBitmap = AnyBitmap.FromFile("noisy-barcode.jpg")
' Apply image filters to improve barcode readability
Dim options As New BarcodeReaderOptions With {
.ImageFilters = New ImageFilterCollection From {
New ContrastFilter(1.5F), ' Increase contrast
New SharpenFilter() ' Sharpen image
}
}
' Read the preprocessed barcode
Dim improvedResults = BarcodeReader.Read(preprocessedImage, options)特定の画像補正を必要とするシナリオの場合、バーコードの読みやすさを向上させるためにフィルタを使用する方法を画像補正ガイドで説明します。
IronDrawingをSystem.Drawingよりも選ぶ理由は?
IronDrawingはSystem.Drawingに対して説得力のある利点を提供します:
- クロスプラットフォームサポート:Windows, Linux, macOSで動作します。
System.Drawing(.NET Core/5+でWindowsのみ)とは異なります。 - 最新のアーキテクチャ:
SkiaSharpとImageSharpに基づいており、優れたパフォーマンスとメモリ管理を提供します。 - 簡易化されたAPI:親しみやすい
System.Drawingのようなインターフェースを維持しつつ、モダンな利便性を追加します。 - 活発な開発:定期的な更新と改善が行われており、メンテナンスモードの
System.Drawingとは異なります。 - より良い統合: Iron Software製品と最適なパフォーマンスを得るために設計されています
特にクラウド環境でのデプロイメントの考慮事項については、AzureへのデプロイやAWSへのデプロイに関するガイドをご覧ください。IronDrawingを使用したクロスプラットフォーム互換性に関する特定の注記が含まれています。
デスクトップアプリケーション、ウェブサービス、またはクラウドネイティブソリューションを構築する場合、IronDrawingは、すべてのプラットフォームでポータブルで効率的なバーコード処理コードを確保し、現代の.NET開発に最適な選択となります。
よくある質問
IronDrawingとは何か、なぜ使うべきなのか?
IronDrawingはIron Softwareによるオープンソースライブラリで、System.DrawingオブジェクトをAnyBitmapにスムーズに変換することで、System.DrawingサポートのWindows限定という制限を解決します。C#でのクロスプラットフォームのバーコード読み取りを目指す開発者にとって不可欠です。
IronBarcodeはどのようにSystem.Drawingからバーコードを読み取るのですか?
IronBarcodeは、System.DrawingオブジェクトをIronDrawingを使ってAnyBitmapに変換することでバーコードを読み取ります。このプロセスにより、C#でのクロスプラットフォームバーコード読み取りが可能になります。
IronBarcodeはmacOSおよびLinuxで動作しますか?
はい、IronBarcodeはIronDrawingを使用してSystem.DrawingオブジェクトをAnyBitmapに変換することで、macOSおよびLinuxで動作します。
IronDrawingを使うことのSystem.Drawingに対する利点は何ですか?
IronDrawingはクロスプラットフォームサポートを提供し、SkiaSharpとImageSharpに基づいた最新のアーキテクチャ、簡略化されたAPI、継続的な開発を備えています。System.DrawingはWindows専用でメンテナンスモードにあるのとは異なります。
System.Drawing.BitmapをAnyBitmapに変換するにはどうすればよいですか?
System.Drawing.BitmapをAnyBitmapに変換するためには、IronDrawingが提供する暗黙のキャスティング機能を使用することで、スムーズな変換が可能です。
IronBarcode はどの種類のバーコードを読み取ることができますか?
IronBarcodeは、QRコード、Code 128、Code 39などを含むさまざまなバーコードフォーマットをサポートしており、サポートされているバーコードフォーマットガイドに詳細が記載されています。
IronBarcodeをインストールしたときにIronDrawingは含まれますか?
はい、NuGetからIronBarcodeをインストールすると、IronDrawingが自動的に含まれるため、クロスプラットフォームバーコードスキャンの簡単な統合が可能になります。
IronBarcodeで単一の画像内の複数のバーコードをどのように処理しますか?
BarcodeReader.ReadメソッドをAnyBitmapとともに使用し、並列処理を活用して単一の画像内の複数のバーコードを効率的に処理および読み取ります。
IronDrawingはどのような画像処理機能を提供しますか?
IronDrawingは、カラ調整やフォント処理などの画像処理タスクを扱うことができ、バーコードやQRコードのスタイリングに役立ちます。
暗黙のキャスティングはクロスプラットフォーム開発にどのように役立ちますか?
IronDrawingの暗黙のキャスティングを使用すると、既存のコードを変更することなくSystem.DrawingオブジェクトをAnyBitmapに変換でき、Linux、macOS、Windows向けのクロスプラットフォーム互換性と開発を促進します。