com.aspose.barcode.barcoderecognition

Class Code128ExtendedParameters



  • public final class Code128ExtendedParameters
    extends BaseExtendedParameters

    Stores special data of Code128 recognized barcode

    Represents the recognized barcode's region and barcode angle


     This sample shows how to get code128 raw values
     
     BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345");
     generator.save("test.png");
     BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_128);
     for(BarCodeResult result : reader.readBarCodes())
     {
        System.out.println("BarCode Type: " + result.getCodeTypeName());
        System.out.println("BarCode CodeText: " + result.getCodeText());
        System.out.println("Code128 Data Portions: " + result.getExtended().getCode128());
     }
     
    • Method Detail

      • getCode128DataPortions

        public Code128DataPortion[] getCode128DataPortions()

        Gets Code128DataPortion array of recognized Code128 barcode

        Value: Array of the Code128DataPortion.
      • equals

        public boolean equals(java.lang.Object obj)

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

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - An System.Object value to compare to this instance.
        Returns:
        <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
      • op_Equality

        public static boolean op_Equality(Code128ExtendedParameters first,
                                          Code128ExtendedParameters second)

        Returns a value indicating whether the first Code128ExtendedParameters value is equal to the second.

        Parameters:
        first - A first compared value
        second - A second compared value
        Returns:
        <b>true</b> if first has the same value as second; otherwise, <b>false</b>.
      • op_Inequality

        public static boolean op_Inequality(Code128ExtendedParameters first,
                                            Code128ExtendedParameters second)

        Returns a value indicating if the first Code128ExtendedParameters value is different from the second.

        Parameters:
        first - A first compared value
        second - A second compared value
        Returns:
        <b>true</b> if first has the different value from second; otherwise, <b>false</b>.
      • hashCode

        public int hashCode()

        Returns the hash code for this instance.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A 32-bit signed integer hash code.
      • toString

        public java.lang.String toString()

        Returns a human-readable string representation of this Code128ExtendedParameters.

        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents this Code128ExtendedParameters.