C#. ISSN Generator Size Setting Tutorial

sample source code to generate linear ISSN images and adjust barcode size in C# .NET


  • Easy to create ISSN barcodes in .NET applications using Visual C# class library
  • Completely written in C#.NET for .NET 2.0/3.0/4.0
  • Easy to control, modify ISSN barcode using 50+ barcode settings provided
  • Support ISSN supplemental 2-digit and 5-digit to add on
  • Show or hide ISSN human-readable characters with customize margin, color and font style
  • Minimum ISSN knowledge with complete developer guide in C#.NET
  • Simple to change the proportion of narrow bar and wide bar in ISSN barcodes
  • Mature ISSN barcode generating dll with royalty-free and perpetual developer license
  • Tutorial for ISSN Image Setting in Visual C#.NET
  • Tutorial for ISSN Data Encoding in Visual C#.NET

ISSN, also known as International Standard Serial Number, is a numeric-only linear barcode used for identifying periodical publications such as magazines.

 

ISSN Structure



ISSN Image Width Related Settings

W: the width of ISSN barcode image, including quiet zones. Please see BarCodeWidth.

X: the width of a module bar. Please see X.

Supplement Space: the space between the barcode and the supplement. Please see Supplement Space

C: the number of ISSN encoded data characters, including the check digit; C = 6.

Q: the width of the quiet zone. Please see Left & Right Margin.

ISSN Image Height Related Settings

H: the barcode height of ISSN. Please see BarCodeHeight.

Y: the height of a module bar. Please see Y.

Supplement Height: the height of the bar module. Please see Supplement Height.

Top & Bottom Margin: the height of the top & bottom margin. Please see Top & Bottom Margin.

Text Margin: the space between image bar and text. Please see Text Margin.

Text Font: the font style of human-readable text. Please see Text Font.


 

Setting ISSN Barcode Size in C#

C# ISSN barcode provides a set of barcode size settings to specify you ISSN barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio:

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISSN;

barcode.Data = "123456789";

Modify your ISSN barcodes by setting those following properties:

UOM

UOM is short for Unit of Measure, which is the unit of measure for all size related settings in the library. C# ISSN barcode provides 3 options: Pixel, Cm, and Inch. The default is Pixel.

barcode.UOM = UnitOfMeasure.PIXEL;

Supplement Space

SupplementSpace is the space between the ISSN barcodes and supplemental data. The default is 15 (float).

barcode.SupplementSpace = 19;

Supplement Height

SupplementHeight is the height of the supplement data bar module. It is the N percent of Y (module height of ISSN barcode bar). The default is 0.8f (float).

barcode.SupplementSpace = 0.5f;

Barcode Width & Height

BarcodeWidth is the ISSN barcode image width. The default in C# ISSN barcode is 0 (float).

BarcodeHeight is the ISSN barcode image height. The default in C# ISSN barcode is 0 (float).

barcode.BarcodeWidth = 0;

barcode.BarcodeHeight = 0;

Notice: if your setting is smaller than the barcode required minimum width and height, the library will automatically reset to barcode minimum width. Or you may enable AutoResize to automatically resize your ISSN barcode image.

Barcode Margin

BarcodeMargin is the white zone around the ISSN symbol. C# ISSN barcode provides 4 options: Left Margin, Right Margin, Top Margin and Bottom Margin. The default of these four margins are 0 (float).

barcode.TopMargin = 3;

barcode.BottomMargin = 3;

barcode.LeftMargin = 1;

barcode.RightMargin = 1;

X & Y

X is the width of barcode bar module (narrow bar). The default in C# ISSN barcode is 1 (float).

Y is the height of barcode bar module. The default in C# ISSN barcode is 60 (float).

barcode.X = 2;

barcode.Y = 80;

Text Margin & Font

TextMargin is the space between barcode and barcode data text. The default in C# ISSN barcode is 6 (float).

TextFont is the font style of human-readable text. The default in C# ISSN barcode is new Font ("Arial", 9f, FontStyle.Regular).

barcode.TextMargin = 9;

barcode.TextFont = new Font("Arial", 20f, FontStyle.Regular);







OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.