Save Barcode to JPG using C# .NET. Convert Barcode to PNG. Barcode to TIFF or BMP

Aspose.Cloud provides developer-friendly, simple APIs that can be used on any platform for various document format processing. So you do not need to get into the nitty-gritty and complexities to handle file formats and to keep your focus on core business requirements. We do understand that it becomes even handy when you do not have to locally manage the APIs but to employ the Cloud-hosted service. Nevertheless, you do not need to contemplate the mechanism for document handling, because the moment you start using Aspose APIs. You need to envisage the outcome and notice that they do not produce futile results. In this article, we are going to discuss the details to generate Barcode in various encoding and save barcodes to JPG, PNG, or BMP format.

Please note that the conventional file processing procedures honed over the years have become inefficacious in modern times. And in order to cope with the current era necessities, Cloud computing has become an indispensable requirement.

Aspose.BarCode Cloud

Aspose.BarCode Cloud API provides great capabilities to create, manipulate, and render Linear, 2D, and postal barcodes in the cloud. The API recognizes and generates barcode images in JPEG, TIFF, PNG, BMP, GIF formats. In order to generate a customized output, you may specify image attributes such as width, height, border style, and output image format. This article further highlights the details related to BarCode processing using Cloud REST API.

Before we proceed, the first step is to install Aspose.BarCode Cloud SDK for .NET. The easiest and most convenient way is through the Nuget package. So use the following command to install the SDK using the package manager console.

Install-Package Aspose.BarCode-Cloud -Version 21.3.0

Please be noted that all our APIs are password-protected, so before you proceed with their usage, you need to subscribe to an account over Aspose.Cloud dashboard. We also recommend visiting the following links

Control Bars Width

In the recent release versions of Aspose.BarCode Cloud API, we have provided flexibility for Barcode processing and specifically have introduced the feature to control bars reduction value. These values are used to compensate for ink spread during the print operation. Apart from the above-mentioned property, there are a variety of options to control the rendering of BarCode images.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>


curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
Code93Extended preview
Fig 2:- Code93Extended Barcode preview.


curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
Code128 preview
Fig 3:- Code128 Barcode preview.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
EAN8 Preview
Fig 4:- EAN8 Barcode preview.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
EAN13 preview
Fig 5:- EAN13 Barcode preview.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
SCC14 BarCode preview
Fig 6:- SCC14 Barcode preview.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
UPCA BarCode preview.
Fig 7:- UPCA Barcode preview.


VIN barcode where the text is displayed on top of the barcode, with BarWidthReduction value as 1 and resolution is set to 130 dpi.

cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
VIN barcode preview
FIg 8:- VIN barcode preview.


curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
PZN Barcode preview.
Fig 9:- PZN Barcode preview.


cURL command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
DataMatrix barcode preview
Fig 10:- DataMatrix barcode preview.


cURL Command

curl -X GET "" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
QR Barcode preview
Fig 11:-QR Barcode preview.

Other than the type of BarCodes specified above, the Aspose.BarCode Cloud API provides support for many more barcode types.

Useful links.

Free online Apps

Want to see the API in action!

Without setting up the environment, you may try exploring the features being offered by Aspose.BarCode by evaluating Aspose.BarCode cross platform Apps.