- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
RM4SCC, also known as Royal Mail 4-state Customer Code, U.K. Royal Mail, is height-modulated barcode symbology for use in automated mail sort process.
Generate and create RM4SCC barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing RM4SCC and 20+ other linear & 2D bar codes in Java application and software.
RM4SCC Generator and Reader library, SDK & application
RM4SCC Generator components and software include
.NET RM4SCC Generator,
C# RM4SCC Generator,
VB.NET RM4SCC Generator,
ASP.NET RM4SCC Generator,
RM4SCC Generator.
This document is providing a detailed Java sample source code about generating RM4SCC barcodes in Java class using
Java Barcode generation component.
Complete RM4SCC custmoization settings is included in
Java RM4SCC generating guide.
Generating RM4SCC barcode in Java class example:
RM4SCC barcode = new RM4SCC(); /* RM4SCC Valid data char set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits) A - Z (Uppercase letters) */ barcode.setData("123"); // Unit of Measure, pixel, cm, or inch barcode.setUom(IBarcode.UOM_PIXEL); // barcode bar module width (X) in pixel barcode.setX(3f); // barcode bar module height (Y) in pixel barcode.setY(75f); // barcode image margins barcode.setLeftMargin(0f); barcode.setRightMargin(0f); barcode.setTopMargin(0f); barcode.setBottomMargin(0f); // barcode image resolution in dpi barcode.setResolution(72); // disply barcode encoding data below the barcode barcode.setShowText(true); // barcode encoding data font style barcode.setTextFont(new Font("Arial", 0, 12)); // space between barcode and barcode encoding data barcode.setTextMargin(6); // barcode displaying angle barcode.setRotate(IBarcode.ROTATE_0); barcode.drawBarcode("C:\\rm4scc.gif");