Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Barcode Reading Properties — Aspose.BarCode for .NET C# Examples

NuGet .NET Examples

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

Examples (50 files)

File Description
access-pdf417-extended-parameters-to-check-if-barcode-is-linked-to-another-segment.cs Access PDF417 extended parameters to check if the barcode is linked to another segment.
adjust-dpi-settings-when-loading-images-to-ensure-accurate-barcode-region-detection.cs Adjust DPI settings when loading images to ensure accurate barcode region detection.
batch-process-folder-of-images-to-extract-barcode-metadata-and-write-results-to-csv.cs Batch process a folder of images to extract barcode metadata and write results to CSV.
capture-barcode-region-as-rectangle-object-and-convert-coordinates-to-absolute-pixel-values.cs Capture barcode region as a rectangle object and convert coordinates to absolute pixel values.
check-1d-barcode-checksum-status-for-code128-barcodes-detected-in-bmp-file.cs Check 1D barcode checksum status for Code128 barcodes detected in a BMP file.
check-pdf417-isreaderinitialization-flag-to-determine-if-barcode-contains-initialization-instructions-for-scanner.cs Check PDF417 IsReaderInitialization flag to determine if barcode contains initialization instructions for the scanner.
configure-barcodereader-to-enable-tryharder-mode-for-detecting-low-contrast-barcodes-in-challenging-lighting.cs Configure BarCodeReader to enable tryHarder mode for detecting low‑contrast barcodes in challenging lighting.
configure-barcodereader-to-read-only-2d-barcodes-and-ignore-1d-symbologies-for-faster-processing.cs Configure BarCodeReader to read only 2D barcodes and ignore 1D symbologies for faster processing.
detect-barcodes-in-rotated-images-and-verify-orientation-angle-matches-expected-rotation.cs Detect barcodes in rotated images and verify orientation angle matches expected rotation.
determine-barcode-orientation-angle-for-each-detected-barcode-in-bmp-image.cs Determine barcode orientation angle for each detected barcode in a BMP image.
dispose-barcodereader-instance-properly-within-using-block-to-release-unmanaged-resources.cs Dispose BarCodeReader instance properly within a using block to release unmanaged resources.
download-image-from-aws-s3-bucket-and-read-pdf417-linked-state-metadata.cs Download image from AWS S3 bucket and read PDF417 linked state metadata.
enable-autorotate-option-to-automatically-correct-barcode-orientation-before-reading-each-processed-image.cs Enable autoRotate option to automatically correct barcode orientation before reading each processed image.
enable-checksum-validation-for-code128-barcodes-and-report-any-verification-failures-during-processing.cs Enable checksum validation for Code128 barcodes and report any verification failures during processing.
export-barcode-type-text-region-and-orientation-to-json-file-for-downstream-consumption.cs Export barcode type, text, region, and orientation to a JSON file for downstream consumption.
extract-aztec-code-layer-count-and-compact-mode-flag-from-image-containing-aztec-barcodes.cs Extract Aztec Code layer count and compact mode flag from an image containing Aztec barcodes.
extract-barcode-metadata-from-live-camera-feed-and-display-results-in-real-time.cs Extract barcode metadata from live camera feed and display results in real time.
extract-barcode-placement-region-coordinates-from-png-file-and-store-them-in-database.cs Extract barcode placement region coordinates from a PNG file and store them in a database.
extract-gs1-composite-component-count-and-application-identifiers-from-png-image.cs Extract GS1 Composite component count and application identifiers from a PNG image.
extract-pdf417-structured-append-sequence-number-and-total-count-from-multi-segment-pdf417-codes.cs Extract PDF417 structured‑append sequence number and total count from multi‑segment PDF417 codes.
fetch-image-from-azure-blob-storage-and-extract-barcode-type-and-code-text.cs Fetch image from Azure Blob storage and extract barcode type and code text.
handle-password-protected-image-files-by-supplying-credentials-before-barcode-detection-in-secure-pipelines.cs Handle password‑protected image files by supplying credentials before barcode detection in secure pipelines.
identify-micro-pdf417-code128-emulation-flag-and-handle-accordingly-in-processing-logic.cs Identify Micro PDF417 Code128 emulation flag and handle accordingly in processing logic.
identify-qr-code-structured-append-metadata-using-qrextendedparameters-for-multi-segment-qr-codes-in-images.cs Identify QR Code structured‑append metadata using QrExtendedParameters for multi‑segment QR codes in images.
implement-async-barcode-reading-using-barcodereaderreadbarcodesasync-for-responsive-ui-in-desktop-applications.cs Implement async barcode reading using BarCodeReader.ReadBarCodesAsync for responsive UI in desktop applications.
instantiate-barcodereader-with-image-file-path-and-read-all-detected-barcode-types.cs Instantiate BarCodeReader with an image file path and read all detected barcode types.
iterate-over-barcoderesult-collection-to-log-each-barcode-s-type-text-and-region.cs Iterate over BarCodeResult collection to log each barcode's type, text, and region.
limit-barcodereader-to-specific-symbologies-such-as-qr-code-and-pdf417-for-performance.cs Limit BarCodeReader to specific symbologies such as QR Code and PDF417 for performance.
load-image-data-from-memory-stream-and-extract-barcode-placement-region-without-saving-to-disk.cs Load image data from a memory stream and extract barcode placement region without saving to disk.
obtain-dotcode-version-information-and-error-correction-level-from-scanned-dotcode-barcode.cs Obtain DotCode version information and error correction level from a scanned DotCode barcode.
process-encrypted-pdf-files-by-providing-password-to-barcodereader-and-extracting-barcode-data.cs Process encrypted PDF files by providing password to BarCodeReader and extracting barcode data.
read-barcode-code-text-and-symbology-type-from-jpeg-image-using-barcodereader.cs Read barcode code text and symbology type from a JPEG image using BarCodeReader.
read-barcode-data-from-base64-encoded-image-string-and-decode-embedded-information.cs Read barcode data from a base64‑encoded image string and decode the embedded information.
read-barcode-information-from-byte-array-representing-image-and-output-json-metadata.cs Read barcode information from a byte array representing an image and output JSON metadata.
read-barcodes-from-multi-page-tiff-file-and-capture-orientation-for-each-page.cs Read barcodes from a multi‑page TIFF file and capture orientation for each page.
read-barcodes-from-video-frame-captured-by-webcam-and-log-orientation-angles.cs Read barcodes from a video frame captured by a webcam and log orientation angles.
read-barcodes-from-zip-archive-containing-multiple-image-files-and-aggregate-metadata.cs Read barcodes from a zip archive containing multiple image files and aggregate metadata.
read-databar-expanded-data-fields-and-numeric-values-from-jpeg-image.cs Read DataBar expanded data fields and numeric values from a JPEG image.
read-datamatrix-symbol-size-and-encoding-mode-from-tiff-image-with-datamatrix-barcodes.cs Read DataMatrix symbol size and encoding mode from a TIFF image with DataMatrix barcodes.
read-qr-code-structured-append-parity-data-and-validate-against-expected-values-for-each-segment.cs Read QR Code structured‑append parity data and validate against expected values for each segment.
read-qr-code-version-and-error-correction-level-from-each-detected-qr-barcode.cs Read QR Code version and error correction level from each detected QR barcode.
retrieve-maxicode-mode-and-postal-code-data-from-pdf-containing-maxicode-symbols.cs Retrieve MaxiCode mode and postal code data from a PDF containing MaxiCode symbols.
retrieve-pdf417-macro-fields-such-as-file-id-and-segment-id-from-scanned-document.cs Retrieve PDF417 macro fields such as file ID and segment ID from a scanned document.
scale-down-high-resolution-images-before-barcode-reading-to-improve-performance-on-limited-hardware.cs Scale down high‑resolution images before barcode reading to improve performance on limited hardware.
set-barcodereader-to-ignore-white-space-when-decoding-code39-barcodes-in-scanned-images.cs Set BarCodeReader to ignore white space when decoding Code39 barcodes in scanned images.
set-maximum-number-of-barcodes-per-image-to-three-to-limit-processing-overhead.cs Set maximum number of barcodes per image to three to limit processing overhead.
store-barcode-region-polygon-points-in-spatial-database-for-later-geometric-analysis.cs Store barcode region polygon points in a spatial database for later geometric analysis.
use-barcodereader-on-pdf-stream-to-decode-barcodes-embedded-on-each-page.cs Use BarCodeReader on a PDF stream to decode barcodes embedded on each page.
use-custom-region-of-interest-to-limit-barcode-detection-to-specific-area-of-image.cs Use custom region of interest to limit barcode detection to a specific area of an image.
use-parallel-processing-to-read-barcodes-from-multiple-images-concurrently-and-aggregate-results.cs Use parallel processing to read barcodes from multiple images concurrently and aggregate results.

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: 50