.NET MAUI와 함께 데스크톱 바코드 애플리케이션(스캐너/생성기)을 만드는 방법
포괄적인 소프트웨어 솔루션을 위해서는 모바일 접근성만 중요한 것이 아닙니다. Windows와 macOS와 같은 데스크톱 운영 체제에 네이티브로 배포할 수 있는 능력도 그만큼 중요합니다. 이 플랫폼 간 접근 방식은 자산 추적 및 관리와 같은 대량 작업을 위해 작업 스테이션의 전체 기능을 활용할 수 있도록 해줍니다.
적절한 데스크톱 지원이 없으면 워크플로우가 중단되거나, 더 나쁜 경우에는 덜 유능한 장치에 강제됩니다. 이것은 특히 사무실 직원이 자기 책상에서 벗어나지 않고 신속하게 코드 배치를 생성하거나 스캔을 확인할 필요가 있는 재고 관리에서 특히 중요합니다.
IronBarcode는 이러한 기능을 구현하기 위한 필수 도구를 제공하여 .NET MAUI 애플리케이션이 모든 컴퓨터 환경에서 안정적으로 작동할 수 있도록 합니다.
이 기사에서는 데스크톱 바코드 스캐너 및 데스크톱 바코드 생성기를 구축하기 위해 IronBarcode를 어떻게 통합할 수 있는지를 설명합니다.
C#에서 .NET MAUI를 사용하여 데스크톱 바코드 앱 생성 방법
- IronBarcode C# 라이브러리를 다운로드하여 .NET MAUI (데스크톱 플랫폼 프레임워크)와 통합하세요
Read로 사용자가 제공한 업로드된 바코드를 읽습니다.- 바코드 값을 .NET MAUI UI에 표시하기
CreateBarcode로 문자열 값을 사용해 바코드 생성- 생성된 바코드를 .NET MAUI UI에 표시하고 이미지를 저장
.NET MAUI 데스크톱 애플리케이션
IronBarcode를 .NET MAUI 앱에 통합하는 것은 간단하며, 라이브러리가 기본적으로 데스크톱 플랫폼과 호환되기 때문입니다. 이 예제에서는 IronBarcode를 사용하여 바코드 스캐너와 바코드 생성기를 각각 생성할 것입니다.
먼저 바코드 스캐너를 시작해 봅시다.
바코드 스캐너 인터페이스 XAML
.NET MAUI 인터페이스에서는 사용자가 제출 버튼을 통해 바코드 이미지를 업로드할 수 있도록 간단한 인터페이스가 구현되었습니다. 프로젝트 내의 MainPage.xaml 파일을 아래에 표시된 내용으로 교체해야 합니다.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}">
<ScrollView>
<VerticalStackLayout Spacing="25" Padding="30" VerticalOptions="Center">
<Label Text="Desktop Barcode Scanner"
FontSize="32"
HorizontalOptions="Center" />
<Image x:Name="ScannerImage"
HeightRequest="300"
WidthRequest="400"
BackgroundColor="#F0F0F0"
Aspect="AspectFit"
HorizontalOptions="Center" />
<Button Text="Select Image to Scan"
Clicked="OnScanButtonClicked"
HorizontalOptions="Center"
WidthRequest="200"/>
<Label x:Name="ResultLabel"
Text="Result will appear here..."
FontSize="20"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
데스크톱 바코드 스캐너 논리 CS
다음으로, 사용자가 버튼을 클릭할 때의 논리가 구현됩니다. UI의 스캔 버튼에 OnScanButtonClicked 이벤트 핸들러가 연결되어 있습니다.
PickPhotoAsync는 사용자가 업로드할 바코드를 선택할 수 있게 한 후, 파일 스트림에 접근하기 위해 OpenReadAsync를 사용합니다. 이미지 데이터는 MemoryStream에 CopyToAsync을 사용하여 즉시 복사됩니다. 이를 통해 데이터가 화면에 이미지를 표시하고, Read 메서드가 바코드를 스캔하는 데 동시에 사용될 수 있습니다.
마지막으로, 유효한 바코드가 검출되면 바코드 값이 UI에 표시되고, 그렇지 않으면 이미지에 바코드가 없다는 빨간 메시지가 표시됩니다.
using IronBarCode;
namespace MauiApp1
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
// Your license key is set here
IronBarCode.License.LicenseKey = "YOUR_KEY";
}
private async void OnScanButtonClicked(object sender, EventArgs e)
{
try
{
var fileResult = await MediaPicker.Default.PickPhotoAsync();
if (fileResult != null)
{
// 1. Copy the file content into a byte array or MemoryStream immediately
// This ensures we have the data in memory before the file closes
byte[] imageBytes;
using (var stream = await fileResult.OpenReadAsync())
using (var memoryStream = new MemoryStream())
{
await stream.CopyToAsync(memoryStream);
imageBytes = memoryStream.ToArray();
}
// 2. Set the Image Source for the UI
// We give the UI a FRESH stream from the bytes we just saved
ScannerImage.Source = ImageSource.FromStream(() => new MemoryStream(imageBytes));
// 3. Process the Barcode
// We give IronBarcode its OWN fresh stream from the same bytes
using (var processingStream = new MemoryStream(imageBytes))
{
// 4. Read the barcode with Read
var results = BarcodeReader.Read(processingStream);
// 5. Display barcode results
if (results != null && results.Count > 0)
{
// Successfully found barcode value
ResultLabel.Text = $"Success: {results[0].Value}";
ResultLabel.TextColor = Colors.Green;
}
else
{
// Image uploaded has no barcode or barcode value is not found
ResultLabel.Text = "No barcode detected.";
ResultLabel.TextColor = Colors.Red;
}
}
}
}
catch (Exception ex)
{
// Display any exception thrown in runtime
ResultLabel.Text = $"Error: {ex.Message}";
ResultLabel.TextColor = Colors.Red;
}
}
}
}Imports IronBarCode
Namespace MauiApp1
Public Partial Class MainPage
Inherits ContentPage
Public Sub New()
InitializeComponent()
' Your license key is set here
IronBarCode.License.LicenseKey = "YOUR_KEY"
End Sub
Private Async Sub OnScanButtonClicked(sender As Object, e As EventArgs)
Try
Dim fileResult = Await MediaPicker.Default.PickPhotoAsync()
If fileResult IsNot Nothing Then
' 1. Copy the file content into a byte array or MemoryStream immediately
' This ensures we have the data in memory before the file closes
Dim imageBytes As Byte()
Using stream = Await fileResult.OpenReadAsync(), memoryStream = New MemoryStream()
Await stream.CopyToAsync(memoryStream)
imageBytes = memoryStream.ToArray()
End Using
' 2. Set the Image Source for the UI
' We give the UI a FRESH stream from the bytes we just saved
ScannerImage.Source = ImageSource.FromStream(Function() New MemoryStream(imageBytes))
' 3. Process the Barcode
' We give IronBarcode its OWN fresh stream from the same bytes
Using processingStream = New MemoryStream(imageBytes)
' 4. Read the barcode with Read
Dim results = BarcodeReader.Read(processingStream)
' 5. Display barcode results
If results IsNot Nothing AndAlso results.Count > 0 Then
' Successfully found barcode value
ResultLabel.Text = $"Success: {results(0).Value}"
ResultLabel.TextColor = Colors.Green
Else
' Image uploaded has no barcode or barcode value is not found
ResultLabel.Text = "No barcode detected."
ResultLabel.TextColor = Colors.Red
End If
End Using
End If
Catch ex As Exception
' Display any exception thrown in runtime
ResultLabel.Text = $"Error: {ex.Message}"
ResultLabel.TextColor = Colors.Red
End Try
End Sub
End Class
End NamespaceImports IronBarCode
Namespace MauiApp1
Public Partial Class MainPage
Inherits ContentPage
Public Sub New()
InitializeComponent()
' Your license key is set here
IronBarCode.License.LicenseKey = "YOUR_KEY"
End Sub
Private Async Sub OnScanButtonClicked(sender As Object, e As EventArgs)
Try
Dim fileResult = Await MediaPicker.Default.PickPhotoAsync()
If fileResult IsNot Nothing Then
' 1. Copy the file content into a byte array or MemoryStream immediately
' This ensures we have the data in memory before the file closes
Dim imageBytes As Byte()
Using stream = Await fileResult.OpenReadAsync(), memoryStream = New MemoryStream()
Await stream.CopyToAsync(memoryStream)
imageBytes = memoryStream.ToArray()
End Using
' 2. Set the Image Source for the UI
' We give the UI a FRESH stream from the bytes we just saved
ScannerImage.Source = ImageSource.FromStream(Function() New MemoryStream(imageBytes))
' 3. Process the Barcode
' We give IronBarcode its OWN fresh stream from the same bytes
Using processingStream = New MemoryStream(imageBytes)
' 4. Read the barcode with Read
Dim results = BarcodeReader.Read(processingStream)
' 5. Display barcode results
If results IsNot Nothing AndAlso results.Count > 0 Then
' Successfully found barcode value
ResultLabel.Text = $"Success: {results(0).Value}"
ResultLabel.TextColor = Colors.Green
Else
' Image uploaded has no barcode or barcode value is not found
ResultLabel.Text = "No barcode detected."
ResultLabel.TextColor = Colors.Red
End If
End Using
End If
Catch ex As Exception
' Display any exception thrown in runtime
ResultLabel.Text = $"Error: {ex.Message}"
ResultLabel.TextColor = Colors.Red
End Try
End Sub
End Class
End Namespace바코드 값이 발견된 출력

보시다시피, 응용 프로그램은 바코드 결과와 업로드된 바코드 이미지를 표시합니다.
바코드 값이 발견되지 않은 출력

보시다시피, 사용자가 바코드가 포함되어 있지 않은 이미지를 업로드하면 '바코드가 발견되지 않았습니다'라는 빨간 메시지가 표시됩니다.
데스크톱 바코드 생성기
다음 부분은 같은 개념을 기반으로 MAUI에 IronBarcode를 통합하여 바코드 생성기를 만드는 것입니다.
바코드 생성기 인터페이스 XAML
생성기 인터페이스를 위한 폼은 텍스트 입력과 드롭다운 메뉴를 통한 바코드 유형 선택을 허용하도록 구현됩니다. 버튼은 생성 및 저장 프로세스를 트리거하고, 결과를 표시할 이미지 뷰도 포함되어 있습니다. MainPage.xaml 파일을 아래에 표시된 내용으로 교체해야 합니다.
1D 바코드의 전체 목록은 여기를 참조하고, 2D 바코드는 여기를 참조하십시오.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}">
<ScrollView>
<VerticalStackLayout Spacing="20" Padding="30" VerticalOptions="Center">
<Label Text="Barcode Generator"
FontSize="32"
HorizontalOptions="Center" />
<Entry x:Name="BarcodeEntry"
Placeholder="Enter value (e.g. 12345 or https://ironsoftware.com)"
WidthRequest="300" />
<Picker x:Name="BarcodeTypePicker"
Title="Select Barcode Type"
WidthRequest="300">
<Picker.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>QRCode</x:String>
<x:String>Code128</x:String>
<x:String>EAN13</x:String>
<x:String>Code39</x:String>
<x:String>PDF417</x:String>
</x:Array>
</Picker.ItemsSource>
</Picker>
<Button Text="Generate & Save"
Clicked="OnGenerateButtonClicked"
HorizontalOptions="Center"
WidthRequest="200" />
<Image x:Name="GeneratedImage"
HeightRequest="200"
WidthRequest="300"
BackgroundColor="#F0F0F0"
Aspect="AspectFit" />
<Label x:Name="StatusLabel"
FontSize="16"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
데스크톱 바코드 생성기 논리 CS
다음으로, 버튼 클릭 이벤트의 논리가 구현됩니다. UI의 생성 버튼에 OnGenerateButtonClicked 이벤트 핸들러가 연결되어 있습니다.
사용자 입력은 텍스트가 있는지 확인하고 유형이 선택되었는지를 검증한 후, 선택이 올바른 BarcodeEncoding에 매핑됩니다. BarcodeWriter.CreateBarcode는 이미지를 생성하고 크기를 조정하며 JPEG 이진 데이터로 변환하는 데 사용됩니다. 이미지는 MemoryStream를 사용하여 화면에 표시됩니다.
마지막으로, 생성된 바코드 파일은 File.WriteAllBytes를 사용하여 사용자의 데스크톱에 직접 저장되고, 저장 위치 확인을 위해 상태 레이블이 업데이트됩니다.
using IronBarCode;
using System.IO; // Required for saving files
namespace MauiApp1
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
IronBarCode.License.LicenseKey = "YOUR-KEY";
// Set default selection
BarcodeTypePicker.SelectedIndex = 0;
}
private void OnGenerateButtonClicked(object sender, EventArgs e)
{
try
{
// 1. Get and Validate Input
string text = BarcodeEntry.Text;
if (string.IsNullOrWhiteSpace(text))
{
StatusLabel.Text = "Error: Please enter text.";
StatusLabel.TextColor = Colors.Red;
return;
}
if (BarcodeTypePicker.SelectedIndex == -1)
{
StatusLabel.Text = "Error: Please select a type.";
StatusLabel.TextColor = Colors.Red;
return;
}
// 2. Determine Encoding Type
string selectedType = BarcodeTypePicker.SelectedItem.ToString();
BarcodeEncoding encoding = BarcodeEncoding.QRCode;
switch (selectedType)
{
case "QRCode": encoding = BarcodeEncoding.QRCode; break;
case "Code128": encoding = BarcodeEncoding.Code128; break;
case "EAN13": encoding = BarcodeEncoding.EAN13; break;
case "Code39": encoding = BarcodeEncoding.Code39; break;
case "PDF417": encoding = BarcodeEncoding.PDF417; break;
}
// 3. Generate Barcode
var barcode = BarcodeWriter.CreateBarcode(text, encoding);
barcode.ResizeTo(400, 200); // Optional resizing
// 4. Convert to Bytes (JPEG)
var bytes = barcode.ToJpegBinaryData();
// 5. Update UI
GeneratedImage.Source = ImageSource.FromStream(() => new MemoryStream(bytes));
// 6. Save to Desktop automatically
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string fileName = $"barcode_{DateTime.Now:yyyyMMdd_HHmmss}.jpg";
string fullPath = Path.Combine(desktopPath, fileName);
File.WriteAllBytes(fullPath, bytes);
// 7. Show Success Message
StatusLabel.Text = $"Saved to Desktop:\n{fileName}";
StatusLabel.TextColor = Colors.Green;
}
catch (Exception ex)
{
StatusLabel.Text = $"Error: {ex.Message}";
StatusLabel.TextColor = Colors.Red;
}
}
}
}using IronBarCode;
using System.IO; // Required for saving files
namespace MauiApp1
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
IronBarCode.License.LicenseKey = "YOUR-KEY";
// Set default selection
BarcodeTypePicker.SelectedIndex = 0;
}
private void OnGenerateButtonClicked(object sender, EventArgs e)
{
try
{
// 1. Get and Validate Input
string text = BarcodeEntry.Text;
if (string.IsNullOrWhiteSpace(text))
{
StatusLabel.Text = "Error: Please enter text.";
StatusLabel.TextColor = Colors.Red;
return;
}
if (BarcodeTypePicker.SelectedIndex == -1)
{
StatusLabel.Text = "Error: Please select a type.";
StatusLabel.TextColor = Colors.Red;
return;
}
// 2. Determine Encoding Type
string selectedType = BarcodeTypePicker.SelectedItem.ToString();
BarcodeEncoding encoding = BarcodeEncoding.QRCode;
switch (selectedType)
{
case "QRCode": encoding = BarcodeEncoding.QRCode; break;
case "Code128": encoding = BarcodeEncoding.Code128; break;
case "EAN13": encoding = BarcodeEncoding.EAN13; break;
case "Code39": encoding = BarcodeEncoding.Code39; break;
case "PDF417": encoding = BarcodeEncoding.PDF417; break;
}
// 3. Generate Barcode
var barcode = BarcodeWriter.CreateBarcode(text, encoding);
barcode.ResizeTo(400, 200); // Optional resizing
// 4. Convert to Bytes (JPEG)
var bytes = barcode.ToJpegBinaryData();
// 5. Update UI
GeneratedImage.Source = ImageSource.FromStream(() => new MemoryStream(bytes));
// 6. Save to Desktop automatically
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string fileName = $"barcode_{DateTime.Now:yyyyMMdd_HHmmss}.jpg";
string fullPath = Path.Combine(desktopPath, fileName);
File.WriteAllBytes(fullPath, bytes);
// 7. Show Success Message
StatusLabel.Text = $"Saved to Desktop:\n{fileName}";
StatusLabel.TextColor = Colors.Green;
}
catch (Exception ex)
{
StatusLabel.Text = $"Error: {ex.Message}";
StatusLabel.TextColor = Colors.Red;
}
}
}
}Imports IronBarCode
Imports System.IO ' Required for saving files
Namespace MauiApp1
Public Partial Class MainPage
Inherits ContentPage
Public Sub New()
InitializeComponent()
IronBarCode.License.LicenseKey = "YOUR-KEY"
' Set default selection
BarcodeTypePicker.SelectedIndex = 0
End Sub
Private Sub OnGenerateButtonClicked(sender As Object, e As EventArgs)
Try
' 1. Get and Validate Input
Dim text As String = BarcodeEntry.Text
If String.IsNullOrWhiteSpace(text) Then
StatusLabel.Text = "Error: Please enter text."
StatusLabel.TextColor = Colors.Red
Return
End If
If BarcodeTypePicker.SelectedIndex = -1 Then
StatusLabel.Text = "Error: Please select a type."
StatusLabel.TextColor = Colors.Red
Return
End If
' 2. Determine Encoding Type
Dim selectedType As String = BarcodeTypePicker.SelectedItem.ToString()
Dim encoding As BarcodeEncoding = BarcodeEncoding.QRCode
Select Case selectedType
Case "QRCode"
encoding = BarcodeEncoding.QRCode
Case "Code128"
encoding = BarcodeEncoding.Code128
Case "EAN13"
encoding = BarcodeEncoding.EAN13
Case "Code39"
encoding = BarcodeEncoding.Code39
Case "PDF417"
encoding = BarcodeEncoding.PDF417
End Select
' 3. Generate Barcode
Dim barcode = BarcodeWriter.CreateBarcode(text, encoding)
barcode.ResizeTo(400, 200) ' Optional resizing
' 4. Convert to Bytes (JPEG)
Dim bytes = barcode.ToJpegBinaryData()
' 5. Update UI
GeneratedImage.Source = ImageSource.FromStream(Function() New MemoryStream(bytes))
' 6. Save to Desktop automatically
Dim desktopPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
Dim fileName As String = $"barcode_{DateTime.Now:yyyyMMdd_HHmmss}.jpg"
Dim fullPath As String = Path.Combine(desktopPath, fileName)
File.WriteAllBytes(fullPath, bytes)
' 7. Show Success Message
StatusLabel.Text = $"Saved to Desktop:{Environment.NewLine}{fileName}"
StatusLabel.TextColor = Colors.Green
Catch ex As Exception
StatusLabel.Text = $"Error: {ex.Message}"
StatusLabel.TextColor = Colors.Red
End Try
End Sub
End Class
End NamespaceImports IronBarCode
Imports System.IO ' Required for saving files
Namespace MauiApp1
Public Partial Class MainPage
Inherits ContentPage
Public Sub New()
InitializeComponent()
IronBarCode.License.LicenseKey = "YOUR-KEY"
' Set default selection
BarcodeTypePicker.SelectedIndex = 0
End Sub
Private Sub OnGenerateButtonClicked(sender As Object, e As EventArgs)
Try
' 1. Get and Validate Input
Dim text As String = BarcodeEntry.Text
If String.IsNullOrWhiteSpace(text) Then
StatusLabel.Text = "Error: Please enter text."
StatusLabel.TextColor = Colors.Red
Return
End If
If BarcodeTypePicker.SelectedIndex = -1 Then
StatusLabel.Text = "Error: Please select a type."
StatusLabel.TextColor = Colors.Red
Return
End If
' 2. Determine Encoding Type
Dim selectedType As String = BarcodeTypePicker.SelectedItem.ToString()
Dim encoding As BarcodeEncoding = BarcodeEncoding.QRCode
Select Case selectedType
Case "QRCode"
encoding = BarcodeEncoding.QRCode
Case "Code128"
encoding = BarcodeEncoding.Code128
Case "EAN13"
encoding = BarcodeEncoding.EAN13
Case "Code39"
encoding = BarcodeEncoding.Code39
Case "PDF417"
encoding = BarcodeEncoding.PDF417
End Select
' 3. Generate Barcode
Dim barcode = BarcodeWriter.CreateBarcode(text, encoding)
barcode.ResizeTo(400, 200) ' Optional resizing
' 4. Convert to Bytes (JPEG)
Dim bytes = barcode.ToJpegBinaryData()
' 5. Update UI
GeneratedImage.Source = ImageSource.FromStream(Function() New MemoryStream(bytes))
' 6. Save to Desktop automatically
Dim desktopPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
Dim fileName As String = $"barcode_{DateTime.Now:yyyyMMdd_HHmmss}.jpg"
Dim fullPath As String = Path.Combine(desktopPath, fileName)
File.WriteAllBytes(fullPath, bytes)
' 7. Show Success Message
StatusLabel.Text = $"Saved to Desktop:{Environment.NewLine}{fileName}"
StatusLabel.TextColor = Colors.Green
Catch ex As Exception
StatusLabel.Text = $"Error: {ex.Message}"
StatusLabel.TextColor = Colors.Red
End Try
End Sub
End Class
End Namespace생성된 바코드가 있는 출력

아시다시피, 응용 프로그램은 생성된 바코드를 표시하고 이를 사용자의 데스크톱에 저장합니다.
출력 실패

일부 바코드 유형은 입력 값에 대한 제한 사항과 형식 요구 사항이 있습니다. 바코드 생성이 실패할 경우, 응용 프로그램은 위와 같이 IronBarcode 예외를 표시합니다. 각 바코드 유형의 서식을 위한 자세한 정보는 해당 1D 및 2D를 참조하십시오.
위의 예제 (데스크톱 바코드 스캐너와 데스크톱 바코드 생성기)를 테스트하려면, 이 샘플 프로젝트를 다운로드하십시오.
자주 묻는 질문
.NET MAUI 데스크톱 애플리케이션에 IronBarcode를 통합하는 목적은 무엇입니까?
IronBarcode를 .NET MAUI 애플리케이션에 통합하면 개발자가 Windows 및 macOS와 같은 데스크톱 환경에서 직접 실행할 수 있는 크로스 플랫폼 바코드 스캐너 및 생성기 솔루션을 구축할 수 있으며, 이는 재고 관리 및 자산 추적과 같은 워크플로우를 향상시킵니다.
IronBarcode를 사용하여 .NET MAUI에서 데스크톱 바코드 스캐너를 어떻게 구현합니까?
바코드 스캐너를 구현하려면, IronBarcode의 Read 메소드를 사용하여 사용자 업로드 바코드 이미지를 스캔하고 결과를 .NET MAUI UI에 표시합니다. 이는 사용자 입력 처리, 바코드 데이터 처리 및 스캔 결과를 인터페이스에 업데이트하는 것을 포함합니다.
IronBarcode를 사용하여 데스크톱 바코드 생성기를 어떻게 만들 수 있습니까?
IronBarcode를 사용하여 .NET MAUI에서 데스크톱 바코드 생성기를 만드는 방법은 텍스트 입력과 바코드 유형 선택을 위한 UI를 제공하는 것입니다. 그런 다음 BarcodeWriter.CreateBarcode를 사용하여 바코드 이미지를 생성하고, 이를 표시하고 사용자의 데스크톱에 저장합니다.
IronBarcode 생성기에서 바코드 이미지를 저장할 수 있는 파일 형식은 무엇입니까?
IronBarcode는 JPEG를 포함하여 여러 형식으로 바코드 이미지를 저장할 수 있습니다. 예제 구현에서는 생성된 바코드 이미지를 JPEG 파일로 저장합니다.
IronBarcode가 데스크톱 애플리케이션에서 다양한 종류의 바코드를 처리할 수 있습니까?
예, IronBarcode는 QRCode, Code128, EAN13, Code39 및 PDF417과 같은 다양한 바코드 유형을 처리할 수 있으며, 데스크톱 애플리케이션 내에서 여러 바코드 형식을 생성 및 읽는 데 유연성을 제공합니다.
`OnScanButtonClicked`가 바코드 스캐너 로직에서 하는 역할은 무엇입니까?
OnScanButtonClicked는 사용자가 스캔 버튼을 클릭할 때 트리거되는 이벤트 핸들러입니다. 이는 IronBarcode를 사용하여 .NET MAUI UI에서 바코드 이미지를 선택, 읽기 및 표시하는 과정을 관리합니다.
데스크톱 바코드 애플리케이션에 있어 크로스 플랫폼 기능이 중요한 이유는 무엇입니까?
크로스 플랫폼 기능은 바코드 애플리케이션이 Windows 및 macOS와 같은 여러 데스크톱 운영 체제에서 네이티브로 실행될 수 있도록 보장하여, 자산 추적 및 재고 관리와 같은 작업을 관리하기 위해 강력한 워크스테이션을 사용할 수 있도록 합니다.
IronBarcode는 바코드 애플리케이션의 워크플로 효율성을 어떻게 향상시킵니까?
IronBarcode는 바코드 생성 및 스캔을 데스크톱 환경에서 직접 허용하여, 모바일 장치에 의존할 필요성을 줄이고 중단을 최소화하며, 배치 코드 생성 및 사무실 설정 내 검사 확인과 같은 작업의 속도를 높여 워크플로 효율성을 향상시킵니다.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.