Skip to content

Commit 764e4f0

Browse files
Update README.md
1 parent 74f73ee commit 764e4f0

1 file changed

Lines changed: 128 additions & 7 deletions

File tree

README.md

Lines changed: 128 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
1-
# Aspose.BarCode for .NET - Agentic Examples
1+
# Aspose.BarCode for .NET Agentic Examples
22

3-
> AI-generated, compiler-validated C# examples for the [Aspose.BarCode for .NET](https://products.aspose.com/barcode/net/) API.
3+
> Agentic, AI-generated, compiler-validated C# examples for the [Aspose.BarCode for .NET](https://products.aspose.com/barcode/net/) API. Every example in this repository compiles and runs successfully against the Aspose.BarCode NuGet package on .NET 9.
4+
5+
## About Aspose.BarCode for .NET
6+
7+
[Aspose.BarCode for .NET](https://products.aspose.com/barcode/net/) is a powerful barcode generation and recognition library for .NET applications. It enables developers to generate, read, and process barcodes programmatically without any third-party dependencies.
8+
9+
**Key capabilities:**
10+
- Generate barcodes for 60+ symbologies including Code128, QR Code, DataMatrix, PDF417, Aztec, EAN, UPC, Code39, ITF14, and more
11+
- Read and recognize barcodes from images, PDFs, and memory streams
12+
- Control barcode appearance — size, resolution, colors, padding, rotation, and XDimension
13+
- Configure checksum settings per symbology
14+
- Export barcode images as PNG, JPEG, SVG, EMF, TIFF, and BMP
15+
- Embed barcodes into PDF documents, Word files, and PowerPoint presentations
16+
- Work with complex barcode types — Swiss QR Bill, Mailmark, HIBC LIC, GS1 Composite, MaxiCode
17+
- Serialize and deserialize barcode generator and reader configurations to XML
18+
19+
## Install
20+
21+
```bash
22+
dotnet add package Aspose.BarCode
23+
```
24+
25+
Or via NuGet Package Manager:
26+
```
27+
Install-Package Aspose.BarCode
28+
```
29+
30+
Requires .NET SDK 9.0 or later.
431

532
## Statistics
633

@@ -67,17 +94,111 @@ README.md
6794

6895
## How to Use
6996

97+
Each example is a self-contained C# file. Clone the repository and run any example directly:
98+
7099
```bash
71100
git clone https://github.com/aspose-barcode/agentic-net-examples.git
72-
cd <category>
73-
dotnet run <example-file.cs>
101+
cd agentic-net-examples
102+
103+
# Navigate to a category
104+
cd barcode-recognition-basics
105+
106+
# Create a console project, add the package, and run an example
107+
dotnet new console -o ExampleRunner
108+
cd ExampleRunner
109+
dotnet add package Aspose.BarCode
110+
111+
# Copy any .cs file from the category as Program.cs and run
112+
cp ../generate-code128-barcode-and-save-as-png.cs Program.cs
113+
dotnet run
114+
```
115+
116+
## Example
117+
118+
Generate a Code128 barcode and save it as a PNG file:
119+
120+
```csharp
121+
using System;
122+
using Aspose.BarCode.Generation;
123+
124+
class Program
125+
{
126+
static void Main()
127+
{
128+
using (var generator = new BarcodeGenerator(EncodeTypes.Code128, "1234567890"))
129+
{
130+
generator.Parameters.Barcode.XDimension.Point = 2f;
131+
generator.Parameters.Barcode.BarHeight.Point = 50f;
132+
generator.Save("code128.png");
133+
Console.WriteLine("Barcode saved as code128.png");
134+
}
135+
}
136+
}
74137
```
75138

139+
Read a barcode from an image file:
140+
141+
```csharp
142+
using System;
143+
using Aspose.BarCode.BarCodeRecognition;
144+
145+
class Program
146+
{
147+
static void Main()
148+
{
149+
using (var reader = new BarCodeReader("barcode.png", DecodeType.AllSupportedTypes))
150+
{
151+
foreach (var result in reader.ReadBarCodes())
152+
{
153+
Console.WriteLine($"Type: {result.CodeTypeName}");
154+
Console.WriteLine($"Text: {result.CodeText}");
155+
}
156+
}
157+
}
158+
}
159+
```
160+
161+
## For AI Coding Agents
162+
163+
This repository includes an [`agents.md`](./agents.md) file at the root and in each category folder. These files provide AI coding agents with:
164+
165+
- Required namespaces and using directives for each category
166+
- Correct API property paths and patterns
167+
- Common pitfalls and prohibited patterns
168+
- Example code fragments for key operations
169+
170+
If you are an AI coding agent generating Aspose.BarCode for .NET code, read the relevant `agents.md` before generating examples to avoid common API mistakes.
171+
76172
## Prerequisites
77173

78-
- .NET SDK (net9.0)
79-
- Aspose.BarCode for .NET 26.4 (via NuGet)
174+
- .NET SDK 9.0 or later
175+
- Aspose.BarCode for .NET 26.4.0 (via NuGet)
176+
177+
A valid [Aspose license](https://purchase.aspose.com/buy) is required for production use. For evaluation, examples run without a license but output may include watermarks on generated barcode images.
178+
179+
## Agentic .NET Ecosystem
180+
181+
Other Aspose products with agentic, build-validated example repositories:
182+
183+
| Product | Repository | Focus |
184+
|---|---|---|
185+
| Aspose.Words for .NET | [aspose-words/agentic-net-examples](https://github.com/aspose-words/agentic-net-examples) | Word processing, DOCX, mail merge |
186+
| Aspose.Cells for .NET | [aspose-cells/agentic-net-examples](https://github.com/aspose-cells/agentic-net-examples) | Spreadsheets, Excel, charts |
187+
| Aspose.HTML for .NET | [aspose-html/agentic-net-examples](https://github.com/aspose-html/agentic-net-examples) | HTML conversion, DOM editing |
188+
| Aspose.Imaging for .NET | [aspose-imaging/agentic-net-examples](https://github.com/aspose-imaging/agentic-net-examples) | Image conversion, manipulation |
189+
| Aspose.Slides for .NET | [aspose-slides/agentic-net-examples](https://github.com/aspose-slides/agentic-net-examples) | Presentations, PowerPoint |
190+
| Aspose.Email for .NET | [aspose-email/agentic-net-examples](https://github.com/aspose-email/agentic-net-examples) | Email, calendars, messaging |
191+
| Aspose.PDF for .NET | [aspose-pdf/agentic-net-examples](https://github.com/aspose-pdf/agentic-net-examples) | PDF creation, conversion and manipulation |
192+
193+
## Resources
194+
195+
- [Aspose.BarCode for .NET Product Page](https://products.aspose.com/barcode/net/)
196+
- [API Reference Documentation](https://reference.aspose.com/barcode/net/)
197+
- [Developer Guide](https://docs.aspose.com/barcode/net/)
198+
- [Release Notes](https://releases.aspose.com/barcode/net/release-notes/)
199+
- [Free Support Forum](https://forum.aspose.com/c/barcode/13)
200+
- [NuGet Package](https://www.nuget.org/packages/Aspose.BarCode/)
80201

81202
---
82203

83-
*Maintained by [agent-aspose-barcode-examples](https://github.com/aspose-barcode/agentic-net-examples) | Last Updated: 2026-04-27*
204+
*Maintained by [agent-aspose-barcode-examples](https://github.com/aspose-barcode/agentic-net-examples) · Generated and validated by the Aspose.BarCode Examples Generator Agent*

0 commit comments

Comments
 (0)