Skip to content

Commit b7855ff

Browse files
Updated files
1 parent 28ecfe4 commit b7855ff

27 files changed

Lines changed: 332 additions & 325 deletions

File tree

  • barcode
    • arabic/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • chinese/net/datamatrix-barcode-configuration
    • czech/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • dutch/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • english/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • french/net
      • compact-pdf417-encoding/compact-pdf417-basic-configuration
      • datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • german/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • greek/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • hindi/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • hongkong/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • hungarian/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • indonesian/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • italian/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • japanese/net/datamatrix-barcode-configuration
    • korean/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • polish/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • portuguese/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • russian/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • spanish/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • swedish/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • thai/net/datamatrix-barcode-configuration
    • turkish/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto
    • vietnamese/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto

barcode/arabic/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ using (BarCodeReader reader = new BarCodeReader(bitmap, DecodeType.DataMatrix))
111111

112112
الآن لديك مثال كامل وجاهز للإنتاج ي **reads DataMatrix barcode C#**، وينشئ الباركود في وضع Auto، ويتحقق من النتيجة — كل ذلك باستخدام Aspose.BarCode لـ .NET. جرّب نصوصًا وأحجامًا وإعدادات ECI مختلفة لتناسب حالتك الخاصة، وارجع إلى [documentation](https://reference.aspose.com/barcode/net/) الرسمي لمزيد من التخصيص.
113113

114+
---
115+
116+
**آخر تحديث:** 2026-01-15
117+
**تم الاختبار مع:** Aspose.BarCode 24.12 لـ .NET
118+
**المؤلف:** Aspose
119+
114120
{{< /blocks/products/pf/tutorial-page-section >}}
115121

116122
{{< /blocks/products/pf/main-container >}}
117123
{{< /blocks/products/pf/main-wrap-class >}}
118124

119125
{{< blocks/products/products-backtop-button >}}
120-
121-
---
122-
123-
**آخر تحديث:** 2026-01-15
124-
**تم الاختبار مع:** Aspose.BarCode 24.12 لـ .NET
125-
**المؤلف:** Aspose

barcode/chinese/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ using (BarCodeReader reader = new BarCodeReader(bitmap, DecodeType.DataMatrix))
110110

111111
现在你拥有了一个完整的、可用于生产的示例,能够 **读取 DataMatrix 条形码 C#**、在 Auto 模式下生成条形码并验证结果——全部基于 Aspose.BarCode for .NET。尝试不同的文本、尺寸和 ECI 设置,以满足你的特定场景,并参考官方 [文档](https://reference.aspose.com/barcode/net/) 进行更深入的定制。
112112

113-
{{< /blocks/products/pf/tutorial-page-section >}}
114-
115-
{{< /blocks/products/pf/main-container >}}
116-
{{< /blocks/products/pf/main-wrap-class >}}
117-
118-
{{< blocks/products/products-backtop-button >}}
119-
120113
---
121114

122115
**最后更新:** 2026-01-15
123116
**测试环境:** Aspose.BarCode 24.12 for .NET
124117
**作者:** Aspose
125118

126-
---
119+
---
120+
121+
{{< /blocks/products/pf/tutorial-page-section >}}
122+
123+
{{< /blocks/products/pf/main-container >}}
124+
{{< /blocks/products/pf/main-wrap-class >}}
125+
126+
{{< blocks/products/products-backtop-button >}}

barcode/chinese/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-c40/_index.md

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,30 @@ weight: 16
1414

1515
# DataMatrix 主编码模式 (C40) 与 Aspose.BarCode for .NET
1616

17-
## Introduction
17+
## 简介
1818

1919
如果您正在寻找一份关于在生成 DataMatrix 条码时 **how to save png** 文件的清晰实用指南,您来对地方了。无论您是在构建库存系统、运单标签生成器,还是任何需要紧凑高密度条码的解决方案,掌握 C40 编码模式都能为您提供尺寸效率和可靠的数据表示。在本教程中,我们将使用 Aspose.BarCode for .NET,逐步演示 **step by step barcode** 的创建过程,从前置条件到最终的 PNG 输出。
2020

21-
## Quick Answers
22-
- **What does “how to save png” refer to?** Saving the generated barcode as a PNG image file.
23-
- **Which encoding mode is covered?** DataMatrix C40 encoding.
24-
- **Do I need a license?** A free trial works for testing; a license is required for production.
25-
- **Can I run this on .NET Core?** Yes, Aspose.BarCode supports .NET Framework and .NET Core.
26-
- **What file format is produced?** PNG (Portable Network Graphics) image.
21+
## 快速解答
2722

28-
## How to Save PNG with DataMatrix C40 Encoding
23+
- **“如何保存 PNG”指的是什么?** 将生成的条形码保存为 PNG 图像文件。
24+
- **支持哪种编码模式?** DataMatrix C40 编码。
25+
- **需要许可证吗?** 免费试用版可用于测试;生产环境需要许可证。
26+
- **可以在 .NET Core 上运行吗?** 可以,Aspose.BarCode 支持 .NET Framework 和 .NET Core。
27+
- **生成的文件格式是什么?** PNG(便携式网络图形)图像。
28+
29+
## 如何使用 DataMatrix C40 编码保存 PNG
2930
将条码保存为 PNG 是在完成生成器配置后的最后一步。`Save` 方法接受文件路径、期望的文件名以及图像格式(`BarCodeImageFormat.Png`),从而确保条码以无损格式存储,能够在浏览器、打印机和移动设备上正常使用。
3031

31-
## What is DataMatrix Encoding Mode (C40)?
32+
## 什么是 DataMatrix 编码模式 (C40)
3233
C40 是一种针对字母数字数据的高效字符集,能够在更小的 DataMatrix 符号中容纳更多信息。当需要编码包含字母、数字以及有限特殊字符的文本时,C40 特别有用。
3334

34-
## Why Use Aspose.BarCode for .NET?
35-
- **Full control** over barcode dimensions, error correction, and encoding modes.
36-
- **Zero‑dependency** generation – no external services required.
37-
- **Cross‑platform** support for .NET Framework, .NET Core, and .NET 5/6+.
35+
## 为什么选择 Aspose.BarCode for .NET
36+
37+
- **完全控制** 条形码尺寸、纠错和编码模式。
38+
- **零依赖**生成 – 无需外部服务。 - **跨平台**支持 .NET Framework.NET Core .NET 5/6+
3839

39-
## Prerequisites
40+
## 先决条件
4041

4142
在深入代码之前,请确保您具备以下条件:
4243

@@ -45,26 +46,26 @@ C40 是一种针对字母数字数据的高效字符集,能够在更小的 Dat
4546
3. **Basic C# knowledge** – 您应熟悉命名空间、类以及 using 语句。
4647
4. **Write‑access folder** – 您机器上用于保存 PNG 的目录。
4748

48-
## Importing Necessary Namespaces
49+
## 导入必要的命名空间
4950

5051
在 C# 源文件的顶部添加所需的命名空间,以便访问条码生成类:
5152

5253
```csharp
5354
using Aspose.BarCode.Generation;
5455
```
5556

56-
## Step-by-Step Barcode Generation
57+
## 条形码生成分步指南
5758

5859
下面是一个 **step by step barcode** 演练。每一步都以通俗的语言说明,原始代码块保持不变,便于复制粘贴。
5960

60-
### Step 1: Define the Directory Path
61+
### 步骤 1:定义目录路径
6162
设置 PNG 图像将要存放的文件夹。将占位符替换为您机器上的实际路径。
6263

6364
```csharp
6465
string path = "Your Directory Path";
6566
```
6667

67-
### Step 2: Set Up Barcode Generation
68+
### 步骤 2:设置条形码生成
6869
创建 `BarcodeGenerator` 实例,指定 `EncodeTypes.DataMatrix`,并提供要编码的数据。
6970

7071
```csharp
@@ -74,15 +75,15 @@ using (BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.DataMatrix, "ASPO
7475
}
7576
```
7677

77-
### Step 3: Customize Barcode
78+
### 步骤 3:自定义条形码
7879
配置 X‑dimension(模块的像素宽度),并将编码模式切换为 C40。
7980

8081
```csharp
8182
gen.Parameters.Barcode.XDimension.Pixels = 6;
8283
gen.Parameters.Barcode.DataMatrix.DataMatrixEncodeMode = DataMatrixEncodeMode.C40;
8384
```
8485

85-
### Step 4: Save the Barcode Image
86+
### 步骤 4:保存条形码图像
8687
最后,将生成的条码保存为 PNG 文件。这就是使用 Aspose.BarCode **how to save png** 的具体答案。
8788

8889
```csharp
@@ -91,30 +92,35 @@ gen.Save($"{path}DataMatrixEncodeModeC40.png", BarCodeImageFormat.Png);
9192

9293
运行程序后,您将在指定的文件夹中找到 `DataMatrixEncodeModeC40.png`,可用于报表、标签或网页。
9394

94-
## Common Issues & Tips
95+
## 常见问题及提示
9596

9697
- **Invalid Path** – 确保目录存在且您拥有写入权限;否则 `gen.Save` 将抛出异常。
9798
- **Incorrect Encoding Mode** – 如果需要编码超出 C40 集合的字符,请切换到 `DataMatrixEncodeMode.Auto` 或其他合适的模式。
9899
- **Image Size** – 调整 `XDimension.Pixels` 可在不影响可读性的前提下增大或缩小条码整体尺寸。
99100

100-
## Frequently Asked Questions
101+
## 常见问题解答
102+
103+
**问:什么是 DataMatrix 编码模式 (C40)?**
104+
105+
答:C40 是一种紧凑的字母数字编码方案,适用于 DataMatrix 符号,非常适合包含字母、数字和少量特殊字符的文本。
106+
107+
**问:在哪里可以找到 Aspose.BarCode for .NET 的文档?**
108+
109+
答:您可以在[此处](https://reference.aspose.com/barcode/net/)找到文档。它提供了所有条形码类型和编码选项的详细指南。
110+
111+
**问:Aspose.BarCode for .NET 是否兼容所有 .NET 版本?**
101112

102-
**Q: What is DataMatrix Encoding Mode (C40)?**
103-
A: C40 is a compact alphanumeric encoding scheme for DataMatrix symbols, ideal for text that includes letters, numbers, and a limited set of special characters.
113+
答:是的,该库支持从 .NET Framework 4.5+ 到 .NET 6 及更高版本的各种 .NET 版本。
104114

105-
**Q: Where can I find the Aspose.BarCode for .NET documentation?**
106-
A: You can find the documentation [here](https://reference.aspose.com/barcode/net/). It provides detailed guidance on all barcode types and encoding options.
115+
**问:购买前我可以试用 Aspose.BarCode for .NET 吗?**
107116

108-
**Q: Is Aspose.BarCode for .NET compatible with all .NET versions?**
109-
A: Yes, the library supports a wide range of .NET versions, from .NET Framework 4.5+ to .NET 6 and later.
117+
答:可以,您可以访问[此链接](https://releases.aspose.com/)免费试用 Aspose.BarCode for .NET。试用版允许您测试该库的功能和特性。
110118

111-
**Q: Can I try Aspose.BarCode for .NET before purchasing?**
112-
A: Yes, you can explore a free trial of Aspose.BarCode for .NET by visiting [this link](https://releases.aspose.com/). It allows you to test the library’s features and capabilities.
119+
**问:我可以在哪里获得 Aspose.BarCode for .NET 的支持?**
113120

114-
**Q: Where can I get support for Aspose.BarCode for .NET?**
115-
A: You can find a supportive community and access support for Aspose.BarCode for .NET on the [Aspose forum](https://forum.aspose.com/c/barcode/13).
121+
答:您可以在[Aspose 论坛](https://forum.aspose.com/c/barcode/13)找到支持社区并获得 Aspose.BarCode for .NET 的支持。
116122

117-
## Conclusion
123+
## 总结
118124

119125
通过遵循本 **step by step barcode** 指南,您现在已经掌握了使用 Aspose.BarCode for .NET 生成 DataMatrix C40 编码并 **how to save png** 文件的完整流程。此方法让您对条码的外观、尺寸和数据表示拥有完全控制,轻松将高质量条码集成到任何 .NET 应用程序中。
120126

barcode/czech/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ A: Aspose.BarCode podporuje UTF‑8, ASCII a další ECI kódování; požadovan
111111

112112
Nyní máte kompletní, připravený příklad, který **čte DataMatrix čárový kód C#**, generuje čárový kód v režimu Auto a ověřuje výsledek – vše pomocí Aspose.BarCode pro .NET. Experimentujte s různými texty, velikostmi a nastavením ECI, aby vyhovovaly vašemu konkrétnímu scénáři, a podívejte se do oficiální [dokumentace](https://reference.aspose.com/barcode/net/) pro podrobnější přizpůsobení.
113113

114-
{{< /blocks/products/pf/tutorial-page-section >}}
115-
116-
{{< /blocks/products/pf/main-container >}}
117-
{{< /blocks/products/pf/main-wrap-class >}}
118-
119-
{{< blocks/products/products-backtop-button >}}
120-
121114
---
122115

123116
**Poslední aktualizace:** 2026-01-15
124117
**Testováno s:** Aspose.BarCode 24.12 pro .NET
125118
**Autor:** Aspose
126119

127-
---
120+
---
121+
122+
{{< /blocks/products/pf/tutorial-page-section >}}
123+
124+
{{< /blocks/products/pf/main-container >}}
125+
{{< /blocks/products/pf/main-wrap-class >}}
126+
127+
{{< blocks/products/products-backtop-button >}}

barcode/dutch/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ A: Aspose.BarCode ondersteunt UTF‑8, ASCII en andere ECI‑coderingen; stel de
111111

112112
Je hebt nu een compleet, productie‑klaar voorbeeld dat **DataMatrix barcode C#** leest, de barcode in Auto-modus genereert en het resultaat verifieert — allemaal met Aspose.BarCode voor .NET. Experimenteer met verschillende teksten, groottes en ECI‑instellingen om aan je specifieke scenario te voldoen, en raadpleeg de officiële [documentatie](https://reference.aspose.com/barcode/net/) voor diepere aanpassingen.
113113

114+
---
115+
116+
**Last Updated:** 2026-01-15
117+
**Tested With:** Aspose.BarCode 24.12 for .NET
118+
**Author:** Aspose
119+
114120
{{< /blocks/products/pf/tutorial-page-section >}}
115121

116122
{{< /blocks/products/pf/main-container >}}
117123
{{< /blocks/products/pf/main-wrap-class >}}
118124

119125
{{< blocks/products/products-backtop-button >}}
120-
121-
---
122-
123-
**Last Updated:** 2026-01-15
124-
**Tested With:** Aspose.BarCode 24.12 for .NET
125-
**Author:** Aspose

barcode/english/net/datamatrix-barcode-configuration/datamatrix-encoding-mode-auto/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ A: Aspose.BarCode supports UTF‑8, ASCII, and other ECI encodings; set the desi
110110

111111
You now have a complete, production‑ready example that **reads DataMatrix barcode C#**, generates the barcode in Auto mode, and verifies the result—all using Aspose.BarCode for .NET. Experiment with different texts, sizes, and ECI settings to fit your specific scenario, and refer to the official [documentation](https://reference.aspose.com/barcode/net/) for deeper customization.
112112

113-
{{< /blocks/products/pf/tutorial-page-section >}}
114-
115-
{{< /blocks/products/pf/main-container >}}
116-
{{< /blocks/products/pf/main-wrap-class >}}
117-
118-
{{< blocks/products/products-backtop-button >}}
119-
120113
---
121114

122115
**Last Updated:** 2026-01-15
123116
**Tested With:** Aspose.BarCode 24.12 for .NET
124117
**Author:** Aspose
125118

126-
---
119+
---
120+
121+
{{< /blocks/products/pf/tutorial-page-section >}}
122+
123+
{{< /blocks/products/pf/main-container >}}
124+
{{< /blocks/products/pf/main-wrap-class >}}
125+
126+
{{< blocks/products/products-backtop-button >}}

0 commit comments

Comments
 (0)