KA.Barcode for .NET Suite
Guide for Resizing ISSN Barcodes in VB.NET
Complete VB.NET source code to generate, print ISSN images and change barcode size with .NET Control

  • Create high quality ISSN Png, Gif, Jpeg, Tiff, or Bmp files in .NET projects using VB.NET

  • Provide properties X and Y to set the width and height of the module bar

  • Draw adjustable supplement barcode

  • Support the width setting of surrounding margins

  • Support the width and height setting of the whole ISSN image

  • Provide cm, inch, and pixel as the unit of measure

  • Capable of printing ISSN with minimum X

  • Also be capable of drawing maximum X in a fixed ISSN image width

ISSN, is also named as International Standard Serial Number, ISSN+2, ISSN+5, ISSN Supplement 2 (Two-digit Add-On), ISSN Supplement 5 (Five-digit Add-On). More details about ISSN in KA.Barcode Generator for VB.NET: Settig ISSN Image in VB.NET and ISSN Encoded Data in VB.NET.

ISSN VB.NET Generator Related Product Software

C#.NET ISSN Generator

Java ISSN Generator

.NET ISSN Winforms Generator

ASP.NET ISSN Generator

ISSN Size Setting Introduction

Width Setting

The width of ISSN barcode image is influenced by the Parameters in the following table.

Parameter Parameter Description Range Related Property
Image Width(W) The width of the ISSN image - BarCodeWidth
Module Bar Width (X) The width of the module bar in ISSN X ≥ 1 pixel X
Supplement Barcode Space The space between the main barcode and the supplement barcode; always measured in pixel - SupplementSpace
Left Quiet Zone Width (Q1) The space between the left edge of the image and the leftmost bar; Q1= 10 X + Left Margin Width Q1 ≥ 10X LeftMargin
Right Quiet Zone Width (Q2) The space between the right edge of the image and the rightmost bar; Q2= 10 X + Right Margin Width Q2 ≥ 10X RightMargin

Supplement note: the quantity of data characters also has an influence over the width of the barcode. See VB.NET ISSN Size Setting - Image Width Setting.

Height Setting

The height of ISSN barcode image is made up by Top Margin width, Bottom Margin width, Bar Height, space between barcode and text, and the height of Text.

Parameter Parameter Description Range Related Property
Image Height (H) The height of the image H ≥ 5mm or 15%W BarCodeHeight
Bar Height (Y) The height of the bar - Y
Supplement Barcode Height (sY) The height of bars in supplement barcode; 0 < s < 1 SupplementHeight (s)
Top Margin Width The height of the top margin ≥ 0 TopMargin
Bottom Margin Width The height of the bottom margin ≥ 0 BottomMargin
Text Height The height of the human readable text font - Text Font
Text Margin The space between symbol and text ≥ 0 TextMargin

In the following section, you will see how to make changes to these Parameters in .NET projects using VB.NET.

How to Use VB.NET ISSN Generator Size Setting Properties

VB.NET ISSN Generator provides VB.NET developers with a full set of properties for ISSN size setting.

Input the following VB Code to use VB.NET ISSN Generator where ISSN bar code image is needed.

Dim issn As KeepAutomation.Barcode.Bean.BarCode

issn = New KeepAutomation.Barcode.Bean.BarCode()

issn.Symbology = KeepAutomation.Barcode.Symbology.ISSN

Input a string value for CodeToEncode, which will be encoded as data in your ISSN. Pay attention to the data encoding instruction for ISSN.

issn.CodeToEncode = "123456789"


Property BarcodeUnit is in control of unit of measure. Before setting the bar width and image size, you should know for sure all the properties in the coming passages are based on the unit of measure. BarcodeUnit defaults as Pixel, and you can change it to cm or inch.

issn.BarcodeUnit = BarcodeUnit.Pixel


Property X (Float; Default: 1) is used in ISSN module bar width setting. Try to set X using VB.NET code as follows:

issn.X = 2

Now, the width of a bar in ISSN has been changed from 1 pixel (as default) to 2 pixel. You can make it even greater if wider bars are in need.


Property Y (Float; Default: 50) sets the bar height of the ISSN.

issn.Y = 40

The width of bars in ISSN has been changed from 50 pixels (as default) to 40 pixels. You can make it even greater or smaller.

SupplementHeight and SupplementSpace

If supplement barcode (also known as add-on symbol) is needed to accompany ISSN, please change the value of Symbology to ISSNSup2 or ISSNSup2, as shown in the following table.

issn.Symbology = KeepAutomation.Barcode.Symbology.ISSNSup2;

issn.Symbology = KeepAutomation.Barcode.Symbology.ISSNSup5;

The height of the supplement barcode is controlled by property SupplementHeight (Float; Default: 0.8).

issn.Y = 40

issn.SupplementHeight = 0.6

if the value of SupplementHeight is 0.6, the height of the supplement barcode is the 0.6 times of Y value, which is 24 pixel in above example.

The space between the main barcode and the supplement barcode is controlled by property Supplementspacee (Float; Default: 15 pixels). Note that the width of the supplement space is always measured by unit pixel.

issn.SupplementSpace = 10

In above example, the actual space between the main barcode and the supplement barcode is 10 pixels.

BarCodeHeight and BarCodeWidth

VB.NET ISSN Generator is also equipped with functional properties BarCodeHeight (Float; Default: 0) and BarCodeWidth (Float; Default: 0) to set the size of the whole ISSN bar code image.

issn.BarCodeHeight = 70

issn.BarCodeWidth = 175

Note: If the setting of image size conflict with the settings in bar width or bar height, you can enable AutoResize to make the generated ISSN compatible with ISSN barcode specification.

TopMargin, BottomMargin, LeftMargin, and RightMargin

ISSN VB.NET Generator will generate a quiet zone at each end of the ISSN symbol automatically. The auto-generated quiet zone is 10X width. You can increase width of quiet zone by increasing the value of properties LeftMargin (Float; Default: 0) and RightMargin (Float; Default: 0). Also, the height of the image can be increased using TopMargin (Float; Default: 0) and BottomMargin (Float; Default: 0).

issn.TopMargin = 10

issn.BottomMargin = 10

issn.LeftMargin = 10

issn.RightMargin = 10


Property TextMargin (Float; Default: 6 pixel) controls the width of space between ISSN bar code and the human readable text below the barcode.

issn.TextMargin = 10