BarCode processing using C# .NET save to PNG | JPEG | TIFF | BMP

Aspose.Cloud provides developer-friendly, simple APIs that can be used on any platform for various document formats processing. The basic intent is to provide APIs which can make the developer’s life easy while manipulating file formats. In fact, you do not need to get into the nitty-gritty and complexities to handle file formats, but the developer shall remain focused on core business requirements. It becomes even handy when you do not have to locally manage the APIs but you can employ the Cloud-hosted service. Nevertheless, you do not need to contemplate over the mechanism for document handling, because the moment you start using Aspose APIs, you can envisage the outcome and notice that they do not produce futile results. Furthermore, the conventional file processing procedures honed over the years have become inefficacious in modern times, and in order to cope up with the current era necessities, Cloud computing has become an indispensable requirement.

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.

Control Bards Width

The recent release version of Aspose.BarCode Cloud API has provided flexibility to users that they can control bars reduction value that is used to compensate ink spread while printing. Apart from the above-mentioned property, there are a variety of options to control the rendering of BarCode images.

Code39Standard

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=Code39Standard&Text=Sample%20Text&TextColor=Yellow&FontSizeMode=Auto&Resolution=130&SizeMode=None&BackColor=Blue&BarColor=Gold&BorderColor=Gold&BorderWidth=4&BorderDashStyle=DashDotDot&BorderVisible=true&EnableChecksum=Yes&BarWidthReduction=2&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>

Code93Extended

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=Code93Extended&Text=Sample%20Text&TextColor=Yellow&FontSizeMode=Auto&Resolution=130&SizeMode=None&BackColor=Blue&BarColor=Gold&BorderColor=Gold&BorderWidth=4&BorderDashStyle=DashDotDot&BorderVisible=true&EnableChecksum=Yes&BarWidthReduction=2&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
Code93Extended preview
Fig 2:- Code93Extended Barcode preview.

Code128

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=Code128&Text=Sample%20Text&TextColor=Yellow&FontSizeMode=Auto&Resolution=130&SizeMode=None&BackColor=Navy&BarColor=Gold&BorderColor=Gold&BorderWidth=4&BorderDashStyle=DashDotDot&BorderVisible=true&EnableChecksum=Yes&BarWidthReduction=2&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
Code128 preview
Fig 3:- Code128 Barcode preview.

EAN8

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=EAN8&Text=123456&TextColor=Purple&FontSizeMode=Auto&Resolution=260&SizeMode=None&BackColor=Gold&BarColor=Navy&BorderColor=Navy&BorderWidth=4&BorderDashStyle=DashDotDot&BorderVisible=true&EnableChecksum=Yes&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
EAN8 Preview
Fig 4:- EAN8 Barcode preview.

EAN13

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=EAN13&Text=123456&TextColor=Purple&FontSizeMode=Auto&Resolution=260&SizeMode=None&BackColor=Yellow&BarColor=Navy&BorderColor=Navy&BorderWidth=4&BorderDashStyle=DashDotDot&BorderVisible=true&EnableChecksum=Yes&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
EAN13 preview
Fig 5:- EAN13 Barcode preview.

SCC14

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=SCC14&Text=123456&TextColor=Pink&FontSizeMode=Auto&Resolution=130&SizeMode=None&BackColor=Green&BarColor=Gold&BorderColor=Gold&BorderWidth=4&BorderDashStyle=Dash&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
SCC14 BarCode preview
Fig 6:- SCC14 Barcode preview.

UPCA

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=UPCA&Text=12345678&TextColor=Navy&FontSizeMode=Auto&Resolution=260&SizeMode=None&BackColor=Pink&BarColor=Purple&BorderColor=Purple&BorderWidth=4&BorderDashStyle=Dash&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
UPCA BarCode preview.
Fig 7:- UPCA Barcode preview.

VIN

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 "https://api.aspose.cloud/v3.0/barcode/generate?Type=VIN&Text=12345678&TextLocation=Above&TextColor=Navy&FontSizeMode=Auto&Resolution=130&SizeMode=None&BarColor=Purple&BorderColor=Purple&BorderWidth=4&BorderDashStyle=Dot&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
VIN barcode preview
FIg 8:- VIN barcode preview.

PZN

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=PZN&Text=12345678&TextLocation=Above&TextAlignment=Left&TextColor=Maroon&FontSizeMode=Auto&Resolution=130&SizeMode=None&BarColor=Olive&BorderColor=Olive&BorderWidth=4&BorderDashStyle=Dot&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
PZN Barcode preview.
Fig 9:- PZN Barcode preview.

DataMatrix

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=DataMatrix&Text=Sample%20Text&TextLocation=Above&TextAlignment=Center&TextColor=Yellow&FontSizeMode=Auto&Resolution=260&SizeMode=None&BackColor=gray&BarColor=Gold&BorderColor=Gold&BorderWidth=4&BorderDashStyle=Solid&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -H "accept: image/png" -H "authorization: Bearer <JWT Token>"
DataMatrix barcode preview
Fig 10:- DataMatrix barcode preview.

QR

cURL Command

curl -X GET "https://api.aspose.cloud/v3.0/barcode/generate?Type=QR&Text=Sample%20Text&TextLocation=Below&TextAlignment=Center&TextColor=Navy&FontSizeMode=Auto&Resolution=260&SizeMode=None&BackColor=azure&BarColor=Navy&BorderColor=Gray&BorderWidth=4&BorderDashStyle=Solid&BorderVisible=true&EnableChecksum=Default&BarWidthReduction=1&format=PNG" -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.