Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GS1 Barcode Types — Aspose.BarCode for .NET C# Examples

NuGet .NET Examples

Standalone, build-validated C# code examples for GS1 Barcode Types using Aspose.BarCode for .NET. Each file is a complete console application — copy it, run dotnet run, and it works.

Examples (34 files)

File Description
apply-10-pixel-margin-around-gs1-code-128-barcode-and-save-as-jpeg.cs Apply a 10‑pixel margin around a GS1 Code 128 barcode and save as JPEG.
batch-convert-list-of-ai-strings-to-gs1-datamatrix-png-files-using-parallel-processing.cs Batch convert a list of AI strings to GS1 DataMatrix PNG files using parallel processing.
batch-generate-gs1-code-128-barcodes-compress-png-outputs-into-single-zip-archive-for-distribution.cs Batch generate GS1 Code 128 barcodes, compress PNG outputs into a single ZIP archive for distribution.
batch-generate-gs1-code-128-barcodes-from-csv-list-of-ai-strings-and-output-png-files.cs Batch generate GS1 Code 128 barcodes from a CSV list of AI strings and output PNG files.
batch-generate-gs1-code-128-barcodes-from-database-table-saving-each-image-to-network-share.cs Batch generate GS1 Code 128 barcodes from a database table, saving each image to a network share.
batch-process-folder-of-ai-strings-generating-gs1-datamatrix-barcodes-and-storing-them-in-zip-archive.cs Batch process a folder of AI strings, generating GS1 DataMatrix barcodes and storing them in a ZIP archive.
configure-barcode-generator-for-high-resolution-300-dpi-and-produce-tiff-images-for-printing.cs Configure the barcode generator for high resolution (300 DPI) and produce TIFF images for printing.
configure-barcode-generator-to-disable-quiet-zone-generate-gs1-datamatrix-and-save-as-png.cs Configure the barcode generator to disable the quiet zone, generate a GS1 DataMatrix, and save as PNG.
create-gs1-code-128-barcode-apply-custom-font-for-human-readable-text-and-save-as-png.cs Create a GS1 Code 128 barcode, apply a custom font for human‑readable text, and save as PNG.
create-gs1-code-128-barcode-rotate-image-90-degrees-clockwise-and-store-as-bmp.cs Create a GS1 Code 128 barcode, rotate the image 90 degrees clockwise, and store as BMP.
create-gs1-datamatrix-barcode-apply-grayscale-filter-and-save-result-as-tiff-image.cs Create a GS1 DataMatrix barcode, apply a grayscale filter, and save the result as a TIFF image.
create-gs1-datamatrix-barcode-set-background-transparency-and-export-as-png-with-alpha-channel.cs Create a GS1 DataMatrix barcode, set background transparency, and export as PNG with an alpha channel.
create-gs1-datamatrix-barcode-specify-square-shape-and-export-as-high-resolution-tiff-for-printing.cs Create a GS1 DataMatrix barcode, specify square shape, and export as high‑resolution TIFF for printing.
create-gs1-datamatrix-barcode-specify-utf-8-encoding-mode-and-export-to-jpeg-with-quality-90.cs Create a GS1 DataMatrix barcode, specify UTF‑8 encoding mode, and export to JPEG with quality 90.
create-gs1-datamatrix-barcode-using-multiple-application-identifiers-and-export-to-jpeg-format.cs Create a GS1 DataMatrix barcode using multiple Application Identifiers and export to a JPEG format.
create-upc-barcode-with-databar-coupon-then-overlay-qr-code-using-graphics-library.cs Create a UPC‑A barcode with a DataBar coupon, then overlay a QR code using a graphics library.
generate-gs1-code-128-barcode-embed-custom-human-readable-text-below-and-save-as-jpeg.cs Generate a GS1 Code 128 barcode, embed custom human‑readable text below, and save as JPEG.
generate-gs1-code-128-barcode-embed-it-in-pdf-document-and-save-pdf.cs Generate a GS1 Code 128 barcode, embed it in a PDF document, and save the PDF.
generate-gs1-code-128-barcode-with-ai-data-and-save-as-png-image-file.cs Generate a GS1 Code 128 barcode with AI data and save as a PNG image file.
generate-gs1-datamatrix-barcode-retrieve-its-byte-array-and-send-it-via-http-response.cs Generate a GS1 DataMatrix barcode, retrieve its byte array, and send it via HTTP response.
generate-gs1-datamatrix-barcode-set-module-size-to-5-pixels-and-export-as-bmp.cs Generate a GS1 DataMatrix barcode, set module size to 5 pixels, and export as BMP.
generate-gs1-datamatrix-barcode-with-error-correction-level-200-and-export-as-png.cs Generate a GS1 DataMatrix barcode with error correction level 200 and export as PNG.
generate-upc-barcode-with-code128-coupon-retrieve-image-as-byte-array-and-attach-to-email.cs Generate a UPC‑A barcode with a Code128 coupon, retrieve image as byte array, and attach to email.
generate-upc-barcode-with-code128-coupon-set-supplement-space-to-40-pixels-and-save-as-png.cs Generate a UPC‑A barcode with a Code128 coupon, set supplement space to 40 pixels, and save as PNG.
generate-upc-barcode-with-databar-coupon-then-combine-it-with-logo-using-systemdrawing-graphics.cs Generate a UPC‑A barcode with a DataBar coupon, then combine it with a logo using System.Drawing graphics.
generate-upc-barcode-with-databar-expanded-coupon-and-adjust-supplement-spacing-to-50-pixels.cs Generate a UPC‑A barcode with a DataBar Expanded coupon and adjust supplement spacing to 50 pixels.
produce-gs1-code-128-barcode-apply-anti-aliasing-and-save-image-with-24-bit-color-depth.cs Produce a GS1 Code 128 barcode, apply anti‑aliasing, and save the image with 24‑bit color depth.
produce-gs1-code-128-barcode-write-image-bytes-to-memorystream-and-return-as-api-response.cs Produce a GS1 Code 128 barcode, write image bytes to a MemoryStream, and return as an API response.
produce-upc-barcode-with-databar-coupon-then-programmatically-merge-it-with-product-label-image.cs Produce a UPC‑A barcode with a DataBar coupon, then programmatically merge it with a product label image.
produce-upc-barcode-with-embedded-gs1-code128-coupon-and-define-30-pixel-supplement-space.cs Produce a UPC‑A barcode with an embedded GS1 Code128 coupon and define 30‑pixel supplement space.
produce-upc-barcode-with-gs1-code128-coupon-then-embed-image-into-html-page.cs Produce a UPC‑A barcode with a GS1 Code128 coupon, then embed the image into an HTML page.
render-gs1-code-128-barcode-retrieve-image-bytes-and-store-them-in-database-column.cs Render a GS1 Code 128 barcode, retrieve image bytes, and store them in a database column.
set-barcode-size-to-200-100-pixels-for-gs1-code-128-barcode-and-export-as-jpeg.cs Set barcode size to 200 × 100 pixels for a GS1 Code 128 barcode and export as JPEG.
set-foreground-color-to-blue-and-background-color-to-white-for-gs1-datamatrix-barcode.cs Set foreground color to blue and background color to white for a GS1 DataMatrix barcode.

Quick Start

# Install the package
dotnet add package Aspose.BarCode

# Run any example directly
dotnet-script example-file.csx
# or copy Program.cs into a new console project and run:
dotnet run

Resources

Updated: 2026-07-04 | Examples: 34