iPhone Data Matrix Generator generate, create 2d barcode Data Matrix images in iPhone (iOS) application

Generate & Print Data Matrix barcode images in iPhone (iOS) Application

  • Fast create linear and 2D barcodes in iOS apps.
  • Source code is provided to build with iOS SDK that best fits for your application.
  • Easy to integrate the barcode generation functionality into your developmental iPhone projects
  • Completely written in Objective-C
  • Mac OS X 10.6 and greater are required
  • Compatible with Xcode 3.2 and above
  • Compatible with iOS 3.2 and above version, and works with iPhone 6,iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS, etc
  • All barcodes are compatible with the latest barcode symbologies ISO standard
  • All the functionality of barcode type control is implemented in a single, small file

Index

 

iPhone Data Matrix Barcode Generator Introduction

iPhone Data Matrix Generator SDK is a Data Matrix generator component designed for iOS project developers who need add Data Matrix creation features into their developmental applications for iPhone.

  • Data Matrix generation support on desktops as well as servers
  • Generate Data Matrix on iPhone client apps, without communicating with a server
  • Complete iPhone Data Matrix Generator Guide provided with iPhone Data Matrix generation demo project

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.

create 2d barcode c#, vb.net 128 barcode generator, how to generate barcode in asp.net c#, free barcode generator in asp.net c#, generate code 128 barcode c#, creating barcodes in word 365

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.

 

Data Matrix Valid Data Scope

iPhone 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 barcode in Objective-C?

  1. Create a barcode object
  2. Set barcode properties
  3. call drawWithView() method, to paint barcode on the canvas.

Sample Code:
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    OBLinear *pLinear = [OBLinear new];
    [pLinear setNBarcodeType: OB_CODE128A];
    [pLinear setPDataMsg: [[NSString alloc] initWithString: (@"AB")]];
    //[pLinear setPSupData: [[NSString alloc] initWithString: (@"14562")]];
    [pLinear setFX: USER_DEF_BAR_WIDTH];
    [pLinear setFY: USER_DEF_BAR_HEIGHT];
    
    [pLinear setFLeftMargin: (USER_DEF_LEFT_MARGIN)];
    [pLinear setFRightMargin: (USER_DEF_RIGHT_MARGIN)];
    [pLinear setFTopMargin: (USER_DEF_TOP_MARGIN)];
    [pLinear setFBottomMargin: (USER_DEF_BOTTOM_MARGIN)];
    
    [pLinear setNRotate: (OB_Rotate0)];
    
    UIFont *pTextFont = [UIFont fontWithName: @"Arial" size: 8.0f];
    [pLinear setPTextFont: pTextFont];
    
    [pLinear drawWithView: (self)];
    [pLinear release];
    
}
 

iPhone Data Matrix Generator - Barcode Properties


Category Class Properties Default Comments
Basic pData "" NSString. Data matrix value to encode
 
Data Matrix
Special
bProcessTilde false BOOL.
Set the bProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
  • ~3: is used only at the very beginning of the symbol for the reader programming purpose.
  • ~5: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 05 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
  • ~6: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 06 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
  • ~7NNNNNN: is used to specify the Extended Channel Interpretations and NNNNNN is a value between 000000 and 999999.
  • ~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 to 255
nDataMode 0 int.
Set the nDataMode property.
Valid values are
OB_DATAMATRIX_Auto = 0,
OB_DATAMATRIX_ASCII = 1,
OB_DATAMATRIX_C40 = 2,
OB_DATAMATRIX_Text = 3,
OB_DATAMATRIX_X12 = 4,
OB_DATAMATRIX_Edifact = 5,
OB_DATAMATRIX_Base256 = 6,
OB_DATAMATRIX_Customer = 7
  • Auto (0): Barcode library will decide the best data mode for you.
  • ASCII (1): it is used to encode data that mainly contains ASCII characters (0-127). This is the default encoding format by Barcode Library.
  • C40 (2): it is used to encode data that mainly contains numeric and upper case characters.
  • Text (3): it is used to encode data that mainly contains numeric and lower case characters.
  • X12 (4):it is used to encode the standard ANSI X12 electronic data interchange characters.
  • EDIFACT (5): it is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111).
  • Base256 (6): it is used to encode 8 bit values.
nFormatMode 0 int.
Default is OBDataMatrixFormatMode.OB_DATAMATRIX_Format_10X10. Specifies the Data Matrix Format to use on that symbology.
Valid values see enum OBDataMatrixFormatMode.
OB_DATAMATRIX_Format_10X10 = 0,
OB_DATAMATRIX_Format_12X12 = 1,
OB_DATAMATRIX_Format_14X14 = 2,
OB_DATAMATRIX_Format_16X16 = 3,
OB_DATAMATRIX_Format_18X18 = 4,
OB_DATAMATRIX_Format_20X20 = 5,
OB_DATAMATRIX_Format_22X22 = 6,
OB_DATAMATRIX_Format_24X24 = 7,
OB_DATAMATRIX_Format_26X26 = 8,
OB_DATAMATRIX_Format_32X32 = 9,
OB_DATAMATRIX_Format_36X36 = 10,
OB_DATAMATRIX_Format_40X40 = 11,
OB_DATAMATRIX_Format_44X44 = 12,
OB_DATAMATRIX_Format_48X48 = 13,
OB_DATAMATRIX_Format_52X52 = 14,
OB_DATAMATRIX_Format_64X64 = 15,
OB_DATAMATRIX_Format_72X72 = 16,
OB_DATAMATRIX_Format_80X80 = 17,
OB_DATAMATRIX_Format_88X88 = 18,
OB_DATAMATRIX_Format_96X96 = 19,
OB_DATAMATRIX_Format_104X104 = 20,
OB_DATAMATRIX_Format_120X120 = 21,
OB_DATAMATRIX_Format_132X132 = 22,
OB_DATAMATRIX_Format_144X144 = 23,
OB_DATAMATRIX_Format_8X18 = 24,
OB_DATAMATRIX_Format_8X32 = 25,
OB_DATAMATRIX_Format_12X26 = 26,
OB_DATAMATRIX_Format_12X36 = 27,
OB_DATAMATRIX_Format_16X36 = 28,
OB_DATAMATRIX_Format_16X48 = 29
nFnc1 - int.
nApplicationIndicator - int.
bStructuredAppend false BOOL. Set bStructuredAppend property to true, then Structured Append is enabled.
nSymbolCount 0 int. Set nSymbolCount property to the number of total symbols which make the sequence.
nSymbolIndex 0 int. Set nSymbolIndex property to the position of current symbol in the secuence (Start with 0).
nFileId 0 int. Set nFileId property to be identified to the same file.
 
Size Related uom 0 Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch.
fX 2 width of barcode module (narrow bar), default is 2 pixel
fBarcodeWidth 0 generted barcode image width
fBarcodeHeight 0 generted barcode image height
fLeftMargin 0 image left margin
fRightMargin 0 image right margin
fTopMargin 0 image top margin
fBottomMargin 0 image bottom margin
nResolution 72 in DPI
nRotate 0 OBRotate. Valid values:
OB_Rotate0 = 0,
OB_Rotate90 = 1,
OB_Rotate180 = 2,
OB_Rotate270 = 3





iPhone Barcode Generator Supporting Barcode Types





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.