Android Data Matrix Generator generate, create barcode Data Matrix images in Android application

Data Matrix Generator for Android to Generate Data Matrix Barcodes in Android Application using Android Barcode Generator Library

  • Android Data Matrix generation api is included in the Android barcode generator
  • Developed from Java Data Matrix barcode generator
  • Support Android 1.5 SDK and later versions
  • Easily integrate the Android Data Matrix SDK into your Android apps
  • Create high quality Data Matrix barcode with this Android barcode SDK
  • Support GIF, JPEG, and PNG image formats with the Android Data Matrix Generator
  • Reliable and mature Android barcode library for Data Matrix generation
  • Compatible with the latest Data Matrix barcode symbology standard
  • Android Data Matrix source code is available for the purchase of the Source Code license


Index
 

Android Data Matrix Barcode Generator Introduction

Android Data Matrix barcode API is a Data Matrix generator for Android apps, designed for creating Data Matrix barcode on Android platform.

  • Android Data Matrix SDK is entirely developed for Android platform
  • Android Data Matrix generator is completely built in Android 1.5 SDK
  • Developer Licenses for this Android Data Matrix library are royalty-free and perpetual

how to program a barcode scanner in java, barcode erstellen word kostenlos, c# generate upc barcode, c# ean 13 check digit, barcode word excel, how to create barcode in asp.net using c#

Data Matrix code is a two-dimensional matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.

OnBarcode provides several Data Matrix Generator library, SDK and software, including Data Matrix .NET, Data Matrix C#, Data Matrix Java, Data Matrix VB.NET, Data Matrix ASP.NET, Data Matrix iPhone, Data Matrix iPad, Data Matrix Generator.

 

Data Matrix Valid Data Scope

Android Barcode Data Matrix supports:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.

 

How to generate Data Matrix barcodes in your Android application?

Generating barcode Data Matrix in Java Class example

	DataMatrix barcode = new DataMatrix();
	
	/*
	   Data Matrix Valid data char set:
	        ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646
	            ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII.
	
	*/
	barcode.setData("112233445566");
	
	barcode.setDataMode(DataMatrix.M_AUTO);
	
	// if your selected format mode doesnot have enough space to encode your data,
	// the library will choose the right format mode for you automatically.
	barcode.setFormatMode(DataMatrix.F_10X10);
	
	//  Set the processTilde property to true, if you want use the tilde character "~" to
	//  specify special characters in the input data. Default is false.
	//  1-byte character: ~ddd (character value from 0 ~ 255)
	//  ASCII (with EXT): from ~000 to ~255
	//  2-byte character: ~6ddddd (character value from 0 ~ 65535)
	//  Unicode: from ~600000 to ~665535
	//  ECI: from ~7000000 to ~7999999
	barcode.setProcessTilde(true);
	
	// if you want to encode GS1 compatible Data Matrix, you need set FNC1 mode to IBarcode.FNC1_ENABLE
	barcode.setFnc1Mode(IBarcode.FNC1_NONE);
	
	// Unit of Measure, pixel, cm, or inch
	barcode.setUom(IBarcode.UOM_PIXEL);
	// barcode bar module width (X) in pixel
	barcode.setX(3f);
	
	barcode.setLeftMargin(10f);
	barcode.setRightMargin(10f);
	barcode.setTopMargin(10f);
	barcode.setBottomMargin(10f);
	// barcode image resolution in dpi
	barcode.setResolution(72);
	
	// 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 Data Matrix Barcode Properties

Barcode Java Class: com.onbarcode.barcode.android.DataMatrix.

Category Properties Value Comments
Basic Property: data Type: String
Default: ""
Barcode value to encode

Data Matrix Valid Data Char Set:

  • ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646

    NOTE: This version consists of the G0 set of ISO/IEC 646 and the C0 set of ISO/IEC 6429 with values 28 - 31 modified to FS, GS, RS and US respectively.
  • ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII.

 
Data Matrix
Special
Property: processTilde Type: bool
Default: true
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default value is true.

  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
    ~ai2: AI code with 2 digits
    ~ai3: AI code with 3 digits
    ~ai4: AI code with 4 digits
    ~ai5: AI code with 5 digits
    ~ai6: AI code with 6 digits
    ~ai7: AI code with 7 digits
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • ~rp: Reader Programming (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ~m5: 05 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m5ABCD1234".
  • ~m6: 06 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m6ABCD1234".
Property: dataMode Type: int

Default: 0 (DataMatrix.M_AUTO)
Data Matrix data encoding mode.

Valid values are:
  • DataMatrix.M_AUTO (0): Barcode library will decide the best data mode for you. This is the default encoding format by Barcode Library.
  • DataMatrix.M_ASCII (1): it is used to encode data that mainly contains ASCII characters (0-127).
  • DataMatrix.M_C40 (2): it is used to encode data that mainly contains numeric and upper case characters.
  • DataMatrix.M_TEXT (3): it is used to encode data that mainly contains numeric and lower case characters.
  • DataMatrix.M_X12 (4):it is used to encode the standard ANSI X12 electronic data interchange characters.
  • DataMatrix.M_EDIFACT (5): it is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111).
  • DataMatrix.M_BASE256 (6): it is used to encode 8 bit values.
Property: formatMode Type: int

Default: 0 (DataMatrix.F_10X10)
Specifies the Data Matrix Format to use on that symbology. Valid values see class DataMatrix;
Property: fnc1Mode Type: int

Default: IBarcode.
FNC1_NONE (0)
To encode GS1 compatible Data Matrix barcode, you need set fnc1Mode value to IBarcode.FNC1_ENABLE (1).
Property: structuredAppend Type: boolean
Default: false
Set StructuredAppend property to true, then Structured Append is enabled.
Property: symbolCount Type: int
Default: 0
Set SymbolCount property to the number of total symbols which make the sequence.
Property: symbolIndex Type: int
Default: 0
Set SymbolIndex property to the position of current symbol in the secuence (Start with 0).
Property: fileId Type: int
Default: 0
Set FileId property to be identified to the same file.
 
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: 3
Barcode bar module width and height, default is 3 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









OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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.