
Aspose.BarCode는 Java, Python, C++와 같은 여러 프로그래밍 언어로 API를 제공합니다. 바코드와 QR 코드를 프로그래밍 방식으로 생성하고 처리하기 위한 강력한 솔루션을 제공합니다. 따라서 전체 프로세스를 자동화하면 비즈니스 소프트웨어에 경쟁 우위를 제공할 것입니다. 따라서 Aspose.BarCode for .NET를 사용하여 C#에서 마이크로 QR 코드 생성하기를 구현할 것입니다. 그러나 앞으로 몇 일 안에 프로그래밍 방식으로 다른 유형의 QR 코드를 생성/읽는 방법도 시연할 예정입니다. 따라서 코드 예제가 포함된 다가오는 흥미로운 튜토리얼을 기대해 주세요.
다음 항목이 포함됩니다:
QR 코드 SDK 통합
원치 않는 상황이 발생할 경우 설치 가이드를 참조하십시오. 그럼에도 불구하고 NuGet 패키지 관리자에서 다음 명령을 실행하거나 이 C# 라이브러리의 DLL 파일을 다운로드할 수 있습니다:
PM> Install-Package Aspose.BarCode

C#에서 마이크로 QR 코드 생성하기 - 코드 스니펫
아래에 설명된 단계를 간단히 따르십시오:
- BarcodeGenerator 클래스의 인스턴스를 생성하고 QRcode 기호 유형과 인코딩할 텍스트로 초기화합니다.
- QR 코드의 크기를 픽셀로 설정합니다.
- 특정 파일에 PNG 형식으로 QR 코드 이미지를 저장(기본적으로 자동)합니다.
- MicroQR M4 버전을 설정하고 저장 메서드를 호출하여 출력 파일을 저장합니다.
다음 코드 샘플은 C#에서 마이크로 QR 코드 생성기를 개발하는 방법을 보여줍니다:
namespace CSharp.MicroQRVersionM4 | |
{ | |
class MicroQRVersionM4 | |
{ | |
static void Main(string[] args) | |
{ | |
// Define the path to the documents directory. | |
string path = "/Desktop/"; | |
System.Console.WriteLine("MicroQRVersion:"); | |
// Create an instance of the BarcodeGenerator class and initialize it with the QRcode symbology type and text to be encoded. | |
using (BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.MicroQR, "EARTH")) | |
{ | |
// Set the size of QR code in Pixels. | |
gen.Parameters.Barcode.XDimension.Pixels = 4; | |
// Save(auto by default) the QR Code image to a specific file in PNG format. | |
gen.Save($"{path}MicroQRVersionAuto.png", BarCodeImageFormat.Png); | |
// Set MicroQR M4 version and invoke the Save method to save the output file. | |
gen.Parameters.Barcode.QR.MicroQRVersion = MicroQRVersion.M4; | |
gen.Save($"{path}MicroQRVersionM4.png", BarCodeImageFormat.Png); | |
} | |
} | |
} | |
} |
출력:

마찬가지로 다음 코드 스니펫을 사용하여 직사각형 마이크로 QR 코드를 생성할 수 있습니다:
namespace CSharp.RectMicroQRVersionR11x77 | |
{ | |
class RectMicroQRVersionR11x77 | |
{ | |
static void Main(string[] args) | |
{ | |
// Define the path to the documents directory. | |
string path = "/Desktop/"; | |
System.Console.WriteLine("MicroQRVersion:"); | |
using (BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.RectMicroQR, "EARTH")) | |
{ | |
gen.Parameters.Barcode.XDimension.Pixels = 4; | |
//auto (by default) | |
gen.Save($"{path}RectMicroQRVersionAuto.png", BarCodeImageFormat.Png); | |
//set RectMicroQR R11x77 version | |
gen.Parameters.Barcode.QR.RectMicroQrVersion = Aspose.BarCode.Generation.RectMicroQRVersion.R11x77; | |
gen.Save($"{path}RectMicroQRVersionR11x77.png", BarCodeImageFormat.Png); | |
} | |
} | |
} | |
} |
아래 이미지에서 생성된 직사각형 마이크로 QR 코드를 확인할 수 있습니다:

무료 마이크로 QR 코드 생성기 - 온라인 도구
Aspose.BarCode가 지원하는 온라인 마이크로 QR 코드 스캐너 및 생성기가 있습니다. 게다가 무료이며 거의 모든 일반적으로 사용되는 웹 브라우저에서 열 수 있습니다.

마이크로 QR 코드 생성기 - 무료 라이센스 받기
이 QR 코드 SDK를 평가 제한 없이 사용해 볼 수 있는 무료 임시 라이센스를 받을 수 있습니다.
요약
이 블로그 게시물의 끝에 다다랐습니다. 우리는 프로그래밍 방식으로 C#에서 마이크로 QR 코드 생성하기를 살펴보았습니다. 또한 Aspose.BarCode for .NET를 사용하여 직사각형 마이크로 QR 코드를 생성하는 방법도 살펴보았습니다. 마찬가지로 문서, GitHub 저장소 및 API 참조를 확인하여 더 알아보실 수 있습니다.
질문하기
우리의 포럼에서 질문이나 문의 사항을 알려주실 수 있습니다.