|
You maybe interested: |
Barcode |
LISTENING FOR EVENTS in Java Creator Dat,
Stepper motor circuit in Android Make UP,
20 69 69 3E 6C 20 65 D 6E 63 A D 20 76 2,
Added Interaction and Manageability in F,
c# code 128 source: clients ssas New MOL,
free barcode generator asp.net control: ,
visual basic 6.0 barcode generator: E XP,
barcode reader vb.net source code: Selec,
zxing pdf417 c#: CSLA . NET OBJECT STERE,
asp net barcode printing example: Day 7:,
barcode dll for vb net: How To in Softwa,
using barcode font in vb.net: Call answe,
vb.net 2d barcode generator: Troubleshoo,
barcode generator in c# code project: TH,
generate barcode in vb.net: Review in Vi,
barcode generator in vb.net 2010: 2: Typ,
asp.net read barcode-scanner: Files, Mod,
c# print 2d barcode: IMPORTANT in VS .NE,
convert string to barcode c#: N ot e in ,
barcode generator vb.net free: XML Suppo,
progress bar code in c# windows applicat,
upc internet hiba 2017: Char in Visual B,
zxing barcode scanner javascript: 12: Ad,
create qr code c#: The Exchange Transpor,
barcode generator in vb net free downloa,
vb.net qr code sample: s WORKING WITH EV,
barcode excel 2010 microsoft: Silberscha,
qr code scanner java download: Sound in ,
usb barcode reader c#: Reporting on Prog,
print barcode label using vb.net: Test S
|
Android Postnet Generator generate, create barcode Postnet images in Android application
POSTNET Generator for Android to Generate POSTNET Barcodes in Android Application using Android Barcode Generator Library
- Easy to use Android Postnet generation api
- Developed from Java Postnet barcode generator
- Compatible with Android 1.5 SDK and later versions
- Easy to integrate the Postnet SDK into Android apps
- Generate high quality Postnet barcode with the Android Postnet SDK
- GIF, JPEG, and PNG are supported by the Android Postnet Barcode Generator
- Reliable and mature Android barcode library for Postnet generation
- Compatible with the latest Postnet barcode symbology standard
- Android Postnet source code is available for the purchase of the Source Code license
Index
Android Postnet Barcode Generator Introduction
Android Postnet barcode API is a Postnet generator for Android apps, designed for creating Postnet barcode on Android platform.
- Android Postnet SDK is entirely developed for Android platform
- Android Postnet generator is completely built in Android 1.5 SDK
- Developer Licenses for this Android Postnet library are royalty-free and perpetual
POSTNET (Postal Numeric Encoding Technique) is a barcode symbology that is used by the United States Postal Service to assist in directing mail. The ZIP Code or ZIP+4 code is encoded in half- and full-height bars.
OnBarcode provides several POSTNET Generator library, SDK, component and software, including
C# POSTNET Generator,
.NET POSTNET Generator,
Java POSTNET Generator,
VB.NET POSTNET Generator,
ASP.NET POSTNET Generator,
POSTNET Generator.
POSTNET Valid Data Scope
Android POSTNET supports:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
How to generate POSTNET barcodes in your Android application?
Generating barcode POSTNET in Java Class example
Postnet barcode = new Postnet();
/*
POSTNET Valid data char set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
POSTNET Valid data length: 5, 6, 9, 11 digits only, excluding the last checksum digit
*/
barcode.setData("01234");
// POSTNET Short bar vs high bar ratio
barcode.setShortTallRatio(0.4f);
// Unit of Measure, pixel, cm, or inch
barcode.setUom(IBarcode.UOM_PIXEL);
// barcode bar module width (X) in pixel
barcode.setX(1f);
// barcode bar module height (Y) in pixel
barcode.setY(75f);
// barcode image margins
barcode.setLeftMargin(10f);
barcode.setRightMargin(10f);
barcode.setTopMargin(10f);
barcode.setBottomMargin(10f);
// 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 AndroidFont("Arial", Typeface.NORMAL, 12));
// space between barcode and barcode encoding data
barcode.setTextMargin(6);
barcode.setTextColor(AndroidColor.black);
// barcode bar color and background color in Android device
barcode.setForeColor(AndroidColor.black);
barcode.setBackColor(AndroidColor.white);
/*
specify your barcode drawing area
*/
RectF bounds = new RectF(30, 30, 0, 0);
barcode.drawBarcode(canvas, bounds);
Android POSTNET Barcode Properties
Barcode Java Class: com.onbarcode.barcode.android.Postnet.
Category |
Properties |
Value |
Comments |
Basic
|
Property: data
|
Type: String
Default: ""
|
Barcode value to encode
POSTNET Valid Data Char Set:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
POSTNET Valid data length:
- 5, 6, 9, 11 digits only, excluding the last checksum digit
|
Property: addCheckSum
|
Type: boolean
Default: false
|
addCheckSum property is not applied here. Java Barcode will automatically add one checksum character. |
|
POSTNET Special |
Property: shortTallRatio
|
Type: float
Default: 0.4f
|
Short bar vs tall bar (Y) ratio
|
|
Barcode Size Related |
Property: autoResize
|
Type: boolean
Default: false
|
Auto resize the generated barcode image
|
Property: barAlignment
|
Type: int
Default: 1 (center)
|
Barcode horizontal alignment inside the image. 0: left, 1: center, 2: right. |
Property: uom
|
Type: int
Default: 0 (pixel)
|
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
|
Property: X
|
Type: float
Default: 1
|
Width of barcode bar module (narrow bar), default is 1 pixel |
Property: Y
|
Type: float
Default: 30
|
Height of barcode bar module, default is 30 pixel |
Property: barcodeWidth
|
Type: float
Default: 0
|
Barcode image width.
If barcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width. |
Property: barcodeHeight
|
Type: float
Default: 0
|
Barcode image height.
If barcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height. |
Property: leftMargin
|
Type: float
Default: 0
|
Barcode image left margin size. |
Property: rightMargin
|
Type: float
Default: 0
|
Barcode image right margin size. |
Property: topMargin
|
Type: float
Default: 0
|
Barcode image top margin size. |
Property: bottomMargin
|
Type: float
Default: 0
|
Barcode image bottom margin size. |
Property: resolution
|
Type: int
Default: 72
|
Barcode image resolution in DPI (Dots per inch). |
Property: rotate
|
Type: int
Default: 0 (IBarcode.ROTATE_0)
|
Valid values:
- 0 (IBarcode.ROTATE_0)
- 1 (IBarcode.ROTATE_90)
- 2 (IBarcode.ROTATE_180)
- 3 (IBarcode.ROTATE_270)
|
|
Barcode Colors |
Property: backColor
|
Type: AndroidColor
Default: AndroidColor.white
|
Barcode image background color |
Property: foreColor
|
Type: AndroidColor
Default: AndroidColor.black
|
Barcode image foreground color
|
|
Font Style |
Property: showText
|
Type: boolean
Default: true
|
If true, display barcode data text under the barcode, otherwise do not display. |
Property: textFont
|
Type: AndroidFont
Default: new AndroidFont("Arial", Typeface.NORMAL, 11)
|
Barcode text font style.
|
Property: textMargin
|
Type: float
Default: 6
|
Space between barcode and barcode data text, default is 6 pixel |
Property: textColor
|
Type: AndroidColor
Default: AndroidColor.black
|
Barcode text color
|
All Android Barcode Generator Supporting Bar Code Symbology Types
|