1 QrCode
Class Ax.barcode.QrCode
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.QrCode.JSQrCode
-
Ax.barcode.QrCode.JSQrCode( string text )
- Info:
-
Returns a QR Code representing the specified Unicode text string at MEDIUM error correction level. As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible QR Code version is automatically chosen for the output. The error level of the result may be higher than MEDIUM if it can be done without increasing the version. - Parameters:
- text - the text to be encoded (not null), which can be any Unicode string
new Ax.barcode.QrCode("Hello, world!");
Ax.barcode.QrCode.JSQrCode
-
Ax.barcode.QrCode.JSQrCode( string text, string level )
- Info:
-
Returns a QR Code representing the specified Unicode text string at the specified error correction level. As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible QR Code version is automatically chosen for the output. The error level of the result may be higher than the level argument if it can be done without increasing the version. - Parameters:
- text - the text to be encoded (not null), which can be any Unicode string
- level - the error correction level to use (not null) (boostable)
new Ax.barcode.QrCode("Hello, world!");
Method Detail
Ax.barcode.QrCode.toPNG
-
byte[] Ax.barcode.QrCode.toPNG()
- Info:
-
Returns a raster image depicting this QR Code, with module scale 10 and 4 border modules. - Returns:
- byte[]
Ax.barcode.QrCode.toPNG
-
byte[] Ax.barcode.QrCode.toPNG( smallint scale, smallint border )
- Info:
-
Returns a raster image depicting this QR Code, with the specified module scale and border modules. - Parameters:
- scale - the side length (measured in pixels, must be positive) of each module
- border - the number of border modules to add, which must be non-negative
- Returns:
- byte[]
Ax.barcode.QrCode.toSVG
-
string Ax.barcode.QrCode.toSVG()
- Info:
-
Returns a string of SVG code for an image depicting this QR Code, with 4 border modules. The string always uses Unix newlines (\n), regardless of the platform. - Returns:
- string
Ax.barcode.QrCode.toSVG
-
string Ax.barcode.QrCode.toSVG( smallint border )
- Info:
-
Returns a string of SVG code for an image depicting this QR Code, with the specified number of border modules. The string always uses Unix newlines (\n), regardless of the platform. - Parameters:
- border - the number of border modules to add, which must be non-negative
- Returns:
- string
2 PDF417
Class Ax.barcode.PDF417
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.PDF417.JSPDF417
-
Ax.barcode.PDF417.JSPDF417( string text )
- Info:
-
Creates a new JSPDF417 with the default settings. - Parameters:
- text - text to encode
new Ax.barcode.PDF417("ABCabc123");
Method Detail
Ax.barcode.PDF417.getBarCodeSize
-
object Ax.barcode.PDF417.getBarCodeSize()
- Info:
-
Gets the size of the barcode grid. - Returns:
- object
Ax.barcode.PDF417.setCodeCols
-
null Ax.barcode.PDF417.setCodeCols( smallint cols )
- Info:
-
Sets the number of barcode data columns. This number may be changed to keep the barcode valid. - Parameters:
- cols - the number of barcode data columns
- Returns:
- null
Ax.barcode.PDF417.setCodeRows
-
null Ax.barcode.PDF417.setCodeRows( smallint rows )
- Info:
-
Sets the number of barcode rows. This number may be changed to keep the barcode valid. - Parameters:
- rows - the number of barcode rows
- Returns:
- null
Ax.barcode.PDF417.setErrorLevel
-
null Ax.barcode.PDF417.setErrorLevel( smallint level )
- Info:
-
Sets the error level correction for the barcode. - Parameters:
- level - the error level correction for the barcode
- Returns:
- null
Ax.barcode.PDF417.setOptions
-
null Ax.barcode.PDF417.setOptions( smallint options )
- Info:
-
Sets the options to generate the barcode. This can be all the PDF417_* constants. - Parameters:
- options - the options to generate the barcode
- Returns:
- null
Ax.barcode.PDF417.setYHeight
-
null Ax.barcode.PDF417.setYHeight( smallint height )
- Info:
-
Sets the Y pixel height relative to X. It is usually 3. - Parameters:
- height - the Y pixel height relative to X
- Returns:
- null
Ax.barcode.PDF417.toPNG
-
byte[] Ax.barcode.PDF417.toPNG()
- Info:
-
Generates the PDF417 barcode as image bytes. - Returns:
- byte[]
3 Scanner
Class Ax.barcode.Scanner
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.Scanner.JSScanner
-
Ax.barcode.Scanner.JSScanner()
- Info:
-
Creates a new scanner instance.
Method Detail
Ax.barcode.Scanner.getResult
-
object Ax.barcode.Scanner.getResult()
- Info:
-
Gets the the last scanner Result or null if was not successful. - Returns:
- object
Ax.barcode.Scanner.scanImage
-
string Ax.barcode.Scanner.scanImage( object img )
- Info:
-
Scans an image (png, jpeg, ...). - Parameters:
- img - an image
- Returns:
- string
Ax.barcode.Scanner.scanPDF
-
string Ax.barcode.Scanner.scanPDF( object pdf )
- Info:
-
Scans a PDF document and returns the scanned barcode or null if not found . - Parameters:
- pdf - a pdf document
- Returns:
- string
Ax.barcode.Scanner.setImageFilter
-
null Ax.barcode.Scanner.setImageFilter( object filter )
- Info:
-
Sets the filters of the scanner. - Parameters:
- filter - the filter/s to use
- Returns:
- null
Ax.barcode.Scanner.setImageHandler
-
null Ax.barcode.Scanner.setImageHandler( object consumer )
- Info:
-
Sets the scanner's handler. - Parameters:
- consumer - the handler function
- Returns:
- null
4 SVG
Class Ax.barcode.SVG
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.SVG.JSSVGBarcode
-
Ax.barcode.SVG.JSSVGBarcode( string text )
- Info:
-
Creates a SVG code representing the specified string. - Parameters:
- text - text to encode
new Ax.barcode.SVG("042100005264");
Method Detail
Ax.barcode.SVG.setHeight
-
object Ax.barcode.SVG.setHeight( double height )
- Info:
-
Sets the pattern height (= bar length) in mm. - Parameters:
- height - height of the barcode in mm
- Returns:
- object
Ax.barcode.SVG.setModule
-
object Ax.barcode.SVG.setModule( double module )
- Info:
-
Sets the width of the elementary unit bar/space. - Parameters:
- module - width of the bars and spaces in mm
- Returns:
- object
Ax.barcode.SVG.setPrintText
-
object Ax.barcode.SVG.setPrintText( boolean print )
- Info:
-
Sets print text, that is, the text under the SVGCode. When set to true, the text will be printed under the SVG barcode. When set to false, the text will not be printed. - Parameters:
- print - true to set print text, false otherwise
- Returns:
- object
Ax.barcode.SVG.setXMLHeader
-
object Ax.barcode.SVG.setXMLHeader( boolean print )
- Info:
-
Sets xml header. When set to true, the xml header will be added to the SVG. When set to false, the xml header will not be added. - Parameters:
- print - true to set xml header, false otherwise
- Returns:
- object
Ax.barcode.SVG.to3of9
-
string Ax.barcode.SVG.to3of9()
- Info:
-
Generates SVG in 3of9 format. - Returns:
- string
Ax.barcode.SVG.toCode128
-
string Ax.barcode.SVG.toCode128()
- Info:
-
Generates SVG in Code128 format. - Returns:
- string
Ax.barcode.SVG.toEAN13
-
string Ax.barcode.SVG.toEAN13()
- Info:
-
Generates SVG in EAN13 format. - Returns:
- string
Ax.barcode.SVG.toInt2of5
-
string Ax.barcode.SVG.toInt2of5()
- Info:
-
Generates SVG in Int2of5 format. - Returns:
- string
Ax.barcode.SVG.toUPCA
-
string Ax.barcode.SVG.toUPCA()
- Info:
-
Generates SVG String in UPCA format. - Returns:
- string
Ax.barcode.SVG.toUPCE
-
string Ax.barcode.SVG.toUPCE()
- Info:
-
Generates SVG in UPCE format. - Returns:
- string
5 CropNorthEastFilter
Class Ax.barcode.filter.CropNorthEastFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropNorthEastFilter.CropNorthEastFilter
-
Ax.barcode.filter.CropNorthEastFilter.CropNorthEastFilter()
Method Detail
Ax.barcode.filter.CropNorthEastFilter.crop
-
object Ax.barcode.filter.CropNorthEastFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropNorthEastFilter.filter
-
object Ax.barcode.filter.CropNorthEastFilter.filter( object original, object src )
- Info:
-
Returns the north-east quarter of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
6 CropNorthFilter
Class Ax.barcode.filter.CropNorthFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropNorthFilter.CropNorthFilter
-
Ax.barcode.filter.CropNorthFilter.CropNorthFilter()
Method Detail
Ax.barcode.filter.CropNorthFilter.crop
-
object Ax.barcode.filter.CropNorthFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropNorthFilter.filter
-
object Ax.barcode.filter.CropNorthFilter.filter( object original, object src )
- Info:
-
Returns the north half of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
7 CropNorthWestFilter
Class Ax.barcode.filter.CropNorthWestFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropNorthWestFilter.CropNorthWestFilter
-
Ax.barcode.filter.CropNorthWestFilter.CropNorthWestFilter()
Method Detail
Ax.barcode.filter.CropNorthWestFilter.crop
-
object Ax.barcode.filter.CropNorthWestFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropNorthWestFilter.filter
-
object Ax.barcode.filter.CropNorthWestFilter.filter( object original, object src )
- Info:
-
Returns the north-west quarter of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
8 CropSouthEastFilter
Class Ax.barcode.filter.CropSouthEastFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropSouthEastFilter.CropSouthEastFilter
-
Ax.barcode.filter.CropSouthEastFilter.CropSouthEastFilter()
Method Detail
Ax.barcode.filter.CropSouthEastFilter.crop
-
object Ax.barcode.filter.CropSouthEastFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropSouthEastFilter.filter
-
object Ax.barcode.filter.CropSouthEastFilter.filter( object original, object src )
- Info:
-
Returns the south-east quarter of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
9 CropSouthFilter
Class Ax.barcode.filter.CropSouthFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropSouthFilter.CropSouthFilter
-
Ax.barcode.filter.CropSouthFilter.CropSouthFilter()
Method Detail
Ax.barcode.filter.CropSouthFilter.crop
-
object Ax.barcode.filter.CropSouthFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropSouthFilter.filter
-
object Ax.barcode.filter.CropSouthFilter.filter( object original, object src )
- Info:
-
Returns the south half of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
10 CropSouthWestFilter
Class Ax.barcode.filter.CropSouthWestFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.CropSouthWestFilter.CropSouthWestFilter
-
Ax.barcode.filter.CropSouthWestFilter.CropSouthWestFilter()
Method Detail
Ax.barcode.filter.CropSouthWestFilter.crop
-
object Ax.barcode.filter.CropSouthWestFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.CropSouthWestFilter.filter
-
object Ax.barcode.filter.CropSouthWestFilter.filter( object original, object src )
- Info:
-
Returns the south-west quarter of the image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
11 RegionFilter
Class Ax.barcode.filter.RegionFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.RegionFilter.RegionFilter
-
Ax.barcode.filter.RegionFilter.RegionFilter( smallint width, smallint height, smallint step )
- Parameters:
- width -
- height -
- step -
Method Detail
Ax.barcode.filter.RegionFilter.filter
-
object Ax.barcode.filter.RegionFilter.filter( object original, object src )
- Info:
-
Returns the same image as the one given (src). - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
Ax.barcode.filter.RegionFilter.getHeight
-
smallint Ax.barcode.filter.RegionFilter.getHeight()
- Info:
-
Returns the region height. - Returns:
- smallint
Ax.barcode.filter.RegionFilter.getStep
-
smallint Ax.barcode.filter.RegionFilter.getStep()
- Info:
-
Returns the step. - Returns:
- smallint
Ax.barcode.filter.RegionFilter.getWidth
-
smallint Ax.barcode.filter.RegionFilter.getWidth()
- Info:
-
Returns the region width. - Returns:
- smallint
12 ResetFilter
Class Ax.barcode.filter.ResetFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.ResetFilter.ResetFilter
-
Ax.barcode.filter.ResetFilter.ResetFilter()
Method Detail
Ax.barcode.filter.ResetFilter.crop
-
object Ax.barcode.filter.ResetFilter.crop( object src, smallint x, smallint y, smallint w, smallint h )
- Parameters:
- src -
- x -
- y -
- w -
- h -
- Returns:
- object
Ax.barcode.filter.ResetFilter.filter
-
object Ax.barcode.filter.ResetFilter.filter( object original, object src )
- Info:
-
Returns the original image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object
13 RotateFilter
Class Ax.barcode.filter.RotateFilter
Constructor Summary
Method Summary
Constructor Detail
Ax.barcode.filter.RotateFilter.RotateFilter
-
Ax.barcode.filter.RotateFilter.RotateFilter( double angle )
- Info:
-
Creates a new RotateFilter with the amount of degrees to rotate the image when the filter is applied. - Parameters:
- angle - angle to rotate in degrees, can be negative
Method Detail
Ax.barcode.filter.RotateFilter.filter
-
object Ax.barcode.filter.RotateFilter.filter( object original, object src )
- Info:
-
Returns the rotated image. - Parameters:
- original - original image without filters applied
- src - image returned from the previous filter
- Returns:
- object