Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Stores recognized barcode data like SingleDecodeType type, string codetext,
> ```
> This sample shows how to obtain BarCodeResult.
>
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345");
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12345");
> generator.save("test.png");
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128);
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39, DecodeType.CODE_128);
> for(BarCodeResult result : reader.readBarCodes())
> {
> System.out.println("BarCode Type: " + result.getCodeTypeName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Base class for MultyDecodeType and SingleDecodeType.
> This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeType
>
> BaseDecodeType decodeOne = DecodeType.CODE_128;
> BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_EXTENDED);
> BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39, DecodeType.CODE_39_FULL_ASCII);
> ```
## Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class Code128DataPortionInternal
| [hashCode()](#hashCode--) | |
| [notify()](#notify--) | |
| [notifyAll()](#notifyAll--) | |
| [setData(Code128DataPortion code128DataPortion, String value)](#setData-com.aspose.barcode.barcoderecognition.Code128DataPortion-java.lang.String-) | |
| [toString()](#toString--) | |
| [wait()](#wait--) | |
| [wait(long arg0)](#wait-long-) | |
Expand Down Expand Up @@ -103,6 +104,20 @@ public final native void notifyAll()



### setData(Code128DataPortion code128DataPortion, String value) {#setData-com.aspose.barcode.barcoderecognition.Code128DataPortion-java.lang.String-}
```
public static void setData(Code128DataPortion code128DataPortion, String value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| code128DataPortion | [Code128DataPortion](../../com.aspose.barcode.barcoderecognition/code128dataportion) | |
| value | java.lang.String | |

### toString() {#toString--}
```
public String toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Specify the type of barcode to read.
> ```
> This sample shows how to detect Code39 and Code128 barcodes.
>
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128);
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39, DecodeType.CODE_128);
> for(BarCodeResult result : reader.readBarCodes())
> {
> System.out.println("BarCode Type: " + result.getCodeTypeName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Stores a MaxiCode additional information of recognized barcode

| Method | Description |
| --- | --- |
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified value. |
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified MaxiCodeExtendedParameters value. |
| [getClass()](#getClass--) | |
| [getHashCode()](#getHashCode--) | Returns the hash code for this instance. |
| [getMaxiCodeMode()](#getMaxiCodeMode--) | Gets a MaxiCode encode mode. |
Expand All @@ -27,10 +27,7 @@ Stores a MaxiCode additional information of recognized barcode
| [isEmpty()](#isEmpty--) | Tests whether all parameters has only default values |
| [notify()](#notify--) | |
| [notifyAll()](#notifyAll--) | |
| [setMaxiCodeMode(int maxiCodeMode)](#setMaxiCodeMode-int-) | Sets a MaxiCode encode mode. |
| [setMaxiCodeStructuredAppendModeBarcodeId(int value)](#setMaxiCodeStructuredAppendModeBarcodeId-int-) | Sets a MaxiCode barcode id in structured append mode. |
| [setMaxiCodeStructuredAppendModeBarcodesCount(int value)](#setMaxiCodeStructuredAppendModeBarcodesCount-int-) | Sets a MaxiCode barcodes count in structured append mode. |
| [toString()](#toString--) | Returns a human-readable string representation of this . |
| [toString()](#toString--) | Returns a human-readable string representation of this MaxiCodeExtendedParameters . |
| [wait()](#wait--) | |
| [wait(long arg0)](#wait-long-) | |
| [wait(long arg0, int arg1)](#wait-long-int-) | |
Expand All @@ -40,7 +37,7 @@ public boolean equals(Object obj)
```


Returns a value indicating whether this instance is equal to a specified value.
Returns a value indicating whether this instance is equal to a specified MaxiCodeExtendedParameters value.

**Parameters:**
| Parameter | Type | Description |
Expand Down Expand Up @@ -137,55 +134,16 @@ public final native void notifyAll()



### setMaxiCodeMode(int maxiCodeMode) {#setMaxiCodeMode-int-}
```
public void setMaxiCodeMode(int maxiCodeMode)
```


Sets a MaxiCode encode mode. Default value: Mode4

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| maxiCodeMode | int | |

### setMaxiCodeStructuredAppendModeBarcodeId(int value) {#setMaxiCodeStructuredAppendModeBarcodeId-int-}
```
public void setMaxiCodeStructuredAppendModeBarcodeId(int value)
```


Sets a MaxiCode barcode id in structured append mode. Default value: 0

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | |

### setMaxiCodeStructuredAppendModeBarcodesCount(int value) {#setMaxiCodeStructuredAppendModeBarcodesCount-int-}
```
public void setMaxiCodeStructuredAppendModeBarcodesCount(int value)
```


Sets a MaxiCode barcodes count in structured append mode. Default value: -1

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | |

### toString() {#toString--}
```
public String toString()
```


Returns a human-readable string representation of this .
Returns a human-readable string representation of this MaxiCodeExtendedParameters .

**Returns:**
java.lang.String - A string that represents this .
java.lang.String - A string that represents this MaxiCodeExtendedParameters .
### wait() {#wait--}
```
public final void wait()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Composite decode type.
> CreateThis sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types.
>
> MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DATA_MATRIX);
> MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39_STANDARD);
> MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39);
> ```
## Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,19 @@ Class for encoding and decoding the text embedded in the HIBC LIC code which sto
> combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123");
> combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(new Date());
> ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext);
> {
> Bitmap image = generator.generateBarCodeImage();
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
> {
> reader.readBarCodes();
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
> HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
> System.out.println("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
> System.out.println("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
> System.out.println("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
> System.out.println("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
> System.out.println("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
> System.out.println("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
> System.out.println("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
> System.out.println("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
> }
> }
> BufferedImage image = generator.generateBarCodeImage();
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
> reader.readBarCodes();
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
> HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
> System.out.println("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
> System.out.println("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
> System.out.println("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
> System.out.println("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
> System.out.println("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
> System.out.println("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
> System.out.println("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
> System.out.println("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
> ```
## Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ Class for encoding and decoding the text embedded in the HIBC LIC code which sto
--------------------

> ```
> This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryCodetext.
> This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryDataCodetext.
>
> HIBCLICPrimaryCodetext complexCodetext = new HIBCLICPrimaryCodetext();
> HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext();
> complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
> complexCodetext.setData(new PrimaryData());
> complexCodetext.getData().setProductOrCatalogNumber("12345");
> complexCodetext.getData().setLabelerIdentificationCode("A999");
> complexCodetext.getData().setUnitOfMeasureID(1);
> ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext);
> {
> Bitmap image = generator.generateBarCodeImage();
> BufferedImage image = generator.generateBarCodeImage();
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
> {
> reader.readBarCodes();
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
> HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
> HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
> System.out.println("Product or catalog number: " + result.getData().getProductOrCatalogNumber());
> System.out.println("Labeler identification code: " + result.getData().getLabelerIdentificationCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
complexGenerator.generateBarCodeImage();

//Mode 2 with structured second message
MaxiCodeCodetextMode2 maxiCodeCodetext = new MaxiCodeCodetextMode2();
maxiCodeCodetext.setPostalCode("524032140");
Expand All @@ -39,9 +39,9 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
complexGenerator.generateBarCodeImage();

//Decoding raw codetext with standart second message
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
{
for (BarCodeResult result : reader.readBarCodes())
{
Expand All @@ -60,7 +60,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
}
}
//Decoding raw codetext with structured second message
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
{
for(BarCodeResult result : reader.readBarCodes())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
complexGenerator.generateBarCodeImage();

//Decoding raw codetext with standart second message
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
for(BarCodeResult result : reader.readBarCodes())
{
MaxiCodeCodetext resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText());
Expand All @@ -59,7 +59,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
}
}
//Decoding raw codetext with structured second message
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
for(BarCodeResult result : reader.readBarCodes())
{
MaxiCodeCodetext resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6.

| Method | Description |
| --- | --- |
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified value. |
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified MaxiCodeStandardCodetext value. |
| [getBarcodeType()](#getBarcodeType--) | Gets barcode type. |
| [getClass()](#getClass--) | |
| [getConstructedCodetext()](#getConstructedCodetext--) | Constructs codetext |
Expand Down Expand Up @@ -78,12 +78,12 @@ public boolean equals(Object obj)
```


Returns a value indicating whether this instance is equal to a specified value.
Returns a value indicating whether this instance is equal to a specified MaxiCodeStandardCodetext value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object | An value to compare to this instance. |
| obj | java.lang.Object | An MaxiCodeStandardCodetext value to compare to this instance. |

**Returns:**
boolean - if obj has the same value as this instance; otherwise, **false**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ Specific parameters.
| [getCoupon()](#getCoupon--) | Gets Coupon parameters . |
| [getDataBar()](#getDataBar--) | Gets DataBar parameters . |
| [getDataMatrix()](#getDataMatrix--) | Gets DataMatrix parameters Used for DataMatrix. |
| [getDotCode()](#getDotCode--) | Gets DotCode parameters |
| [getDotCode()](#getDotCode--) | Gets DotCode parameters "com.aspose.barcode.generation.DotCodeParameters" |
| [getHanXin()](#getHanXin--) | Gets HanXin parameters . |
| [getITF()](#getITF--) | Gets ITF parameters . |
| [getMaxiCode()](#getMaxiCode--) | Gets MaxiCode parameters . |
| [getPdf417()](#getPdf417--) | Gets Pdf417 parameters . |
| [getPostal()](#getPostal--) | Gets Postal parameters . |
| [getQR()](#getQR--) | Gets QR, MicroQR and RectMicroQR parameters com.aspose.barcode.generation.QrParameters . |
| [getQR()](#getQR--) | Gets QR, MicroQR and RectMicroQR parameters com.aspose.barcode.component.QrParametersUI . |
| [getSupplement()](#getSupplement--) | Gets Supplement parameters . |
| [hashCode()](#hashCode--) | |
| [notify()](#notify--) | |
Expand Down Expand Up @@ -164,7 +164,7 @@ public DotCodeParameters getDotCode()
```


Gets DotCode parameters
Gets DotCode parameters "com.aspose.barcode.generation.DotCodeParameters"

**Returns:**
[DotCodeParameters](../../com.aspose.barcode.generation/dotcodeparameters) - Used for DotCode.
Expand Down Expand Up @@ -224,7 +224,7 @@ public QrParametersUI getQR()
```


Gets QR, MicroQR and RectMicroQR parameters com.aspose.barcode.generation.QrParameters . Used for QR.
Gets QR, MicroQR and RectMicroQR parameters com.aspose.barcode.component.QrParametersUI . Used for QR.

**Returns:**
[QrParametersUI](../../com.aspose.barcode.component/qrparametersui)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,13 @@ java.lang.Object, java.lang.Enum
public enum AutoSizeMode extends Enum<AutoSizeMode>
```

Specifies the different types of automatic sizing modes. Default value is AutoSizeMode.NONE.

--------------------

> ```
> This sample shows how to create and save a BarCode image.
>
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
> generator.setAutoSizeMode(AutoSizeMode.NEAREST);
> generator.getBarCodeWidth().setMillimeters(50);
> generator.getBarCodeHeight().setInches(1.3f);
> generator.save("test.png");
> ```
Specifies the different types of automatic sizing modes.
## Fields

| Field | Description |
| --- | --- |
| [INTERPOLATION](#INTERPOLATION) | Resizes barcode to specified size with little scaling but it can be little damaged in some cases because using interpolation for scaling. |
| [NEAREST](#NEAREST) | Barcode resizes to nearest lowest possible size which are specified by BarCodeWidth and BarCodeHeight properties. |
| [INTERPOLATION](#INTERPOLATION) | Resizes barcode to specified size. |
| [NEAREST](#NEAREST) | Resizes barcode to nearest lowest possible size specified by ImageWidth and ImageHeight properties. |
| [NONE](#NONE) | Automatic resizing is disabled. |
## Methods

Expand Down Expand Up @@ -59,35 +47,23 @@ public static final AutoSizeMode INTERPOLATION
```


Resizes barcode to specified size with little scaling but it can be little damaged in some cases because using interpolation for scaling. Size can be specified by BarcodeGenerator.BarCodeWidth and BarcodeGenerator.BarCodeHeight properties.

--------------------

> ```
> This sample shows how to create and save a BarCode image in Scale mode.
>
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
> generator.setAutoSizeMode(AutoSizeMode.INTERPOLATION);
> generator.getBarCodeWidth().setMillimeters(50);
> generator.getBarCodeHeight().setInches(1.3f);
> generator.save("test.png");
> ```
Resizes barcode to specified size. Size can be specified by ImageWidth and ImageHeight properties. Generated barcode may be invalid (not readable) after scaling.

### NEAREST {#NEAREST}
```
public static final AutoSizeMode NEAREST
```


Barcode resizes to nearest lowest possible size which are specified by BarCodeWidth and BarCodeHeight properties.
Resizes barcode to nearest lowest possible size specified by ImageWidth and ImageHeight properties. Preserves default aspect ratio.

### NONE {#NONE}
```
public static final AutoSizeMode NONE
```


Automatic resizing is disabled. Default value.
Automatic resizing is disabled.

### <T>valueOf(Class<T> arg0, String arg1) {#-T-valueOf-java.lang.Class-T--java.lang.String-}
```
Expand Down
Loading