KA.Barcode for Java
Guide for Resizing EAN 128 Barcodes in Java
Complete Java source code to generate, print EAN 128 images and change barcode size with Java Control
EAN 128 Barcode Generator for Java Overview
  • Valid character set and available data length can be referred in the EAN 128 page
  • High quality EAN 128 images may be printed with any printers, including those low resolution printers
  • The generated EAN 128 image resolution can be set to be a fixed value with your need
  • In addition, left margin, right margin, top margin, bottom margin, wide to narrow ratio and text margin can change the size of EAN 128 image in Java projects
  • Applet allows EAN 128 easily integrated into web pages
  • Detailed tutorial guide for Java EAN 128 generator is provided for your easier programming
  • Over 50 properties are valid for adjustment
  • Check sum digit of EAN 128 image can be automatically computed
Related EAN 128 Java Generation Setting Guide
EAN-128, is also named as GS1-128, UCC-128, UCC.EAN-128, GTIN-128. Excluding Java EAN 128 Size Setting, KeepAutomation provides other concerned EAN 128 generation setting properties for adjust the image and encoding data:
Java EAN 128 Size Setting Parameters
The size of EAN 128 generated in Java can be adjusted with the following properties:
  • X - the width of the EAN 128 bar module, default is 2 pixel
  • Y - the height value of EAN 128 bar module, default is 75 pixel
  • UOM - Unit of measure for all size related properties. UOM_PIXEL (0); UOM_CM (1); UOM_INCH (2). Default is UOM_PIXEL (0)
  • leftMargin - the space between the left side and bars in EAN 128 generated by Java EAN 128
  • rightMargin - the space between the right side and bars in EAN 128 generated by Java EAN 128, default is 0
  • topMargin - the space between the top side and bars, default is 0
  • bottomMargin - the space between the bottom side and bars, default is 0
  • barcodeWidth - the fixed width value of EAN 128 image, default is 0
  • barcodeHeight - the fixed height value of EAN 128 image, default is 0
  • textFont - the text font style of the generated EAN 128, default is new Font("Arial", Font.PLAIN, 11)
  • autoResize - adjust the size with your setting properties with set it to be ture
EAN 128 Size Setting in Java - Common situations

Generate EAN 128 image with a fixed Bar Width in Java

In java applications, EAN 128 bar width can be set with the property - X. To set a fixed X, the EAN 128 image will be printed with the minimum X.
  • Set the minimum value of X. For example, barcode.setX(4);
  • Set the autoResize to be false. For example,barcode.setautoReisize(false);
  • Adjust other option with your need

Create EAN 128 image with a fixed Image Width in Java

In java applications, EAN 128 image width can be set with the property - BarCodeWidth. To set a fixed image width, the EAN 128 image will be drawn with the fixed image width.
  • Set the fixed value of BarCodeWidth. For example, barcode.setBarCodeWidth (200);
  • Set the autoResize to be true. For example,barcode.setautoReisize(true);
  • Adjust other option with your need

Draw EAN 128 image with a Minimum X and BarCodeWidth in Java

In java applications, EAN 128 image size can be changed with X and BarCodeWidth at the same time.
  • Set the minimum value of X. For example, barcode.setX(4);
  • Set the fixed value of BarCodeWidth. For example, barcode.setBarCodeWidth (200);
  • Set the autoResize to be false. For example,barcode.setautoReisize(false);
  • Adjust other option with your need
Note that, once setting a fixed X, a minimum BarCodeWidth EAN 128 image is automatically created in Java. If your set BarCodeWidth is smaller than the minimum value, the generated EAN 128 image width will be the minimum barcode width value in java. If your set BarCodeWidth is larger than the minimum value, the generated EAN 128 image width will be the set barcode width value in java. This situation is the same as BarCodeHeight.