com.aspose.barcode.generation.internal

Class AztecProperties

  • java.lang.Object
    • com.aspose.barcode.generation.internal.AztecProperties


  • public final class AztecProperties
    extends java.lang.Object

    Contains specific configuration properties for Aztec barcode.


      This sample shows how to create and save a BarCode image.
      
             BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
             generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT);
             generator.getAztec().setErrorLevel(50);
             generator.save("test.png");
            
    • Constructor Detail

      • AztecProperties

        public AztecProperties()
    • Method Detail

      • getSymbolMode

        public AztecSymbolMode getSymbolMode()

        Gets a Aztec Symbol mode. Default is Auto mode.


          This sample shows how to change Aztec Symbol mode and save a BarCode image.
          
                 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
                 generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT);
                 int symbolMode = generator.getAztec().getSymbolMode();
                 String symbolModeName = AztecSymbolMode.getAztecSymbolModeName(symbolMode);
                 generator.save("test.png");
          
      • setSymbolMode

        public void setSymbolMode(AztecSymbolMode value)

        Sets a Aztec Symbol mode. Default is Auto mode.


          This sample shows how to change Aztec Symbol mode and save a BarCode image.
          
                 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
                 generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT);
                 generator.save("test.png");
                
      • setSymbolMode

        @Deprecated
        public void setSymbolMode(int value)
        Deprecated. 

        Sets a Aztec Symbol mode. Default is Auto mode.


          This sample shows how to change Aztec Symbol mode and save a BarCode image.
          
                 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
                 generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT);
                 generator.save("test.png");
                
      • getErrorLevel

        public int getErrorLevel()

        Level of error correction of Aztec types of barcode. Value should between 10 to 95.


          This sample shows how to change Aztec Symbol mode and save a BarCode image.
          
                 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
                 generator.getAztec().setErrorLevel(50);
                 generator.save("test.png");
                
      • setErrorLevel

        public void setErrorLevel(int value)

        Level of error correction of Aztec types of barcode. Value should between 10 to 95.


          This sample shows how to change Aztec Symbol mode and save a BarCode image.
          
                 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AZTEC);
                 generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT);
                 generator.getAztec().setErrorLevel(50);
                 generator.save("test.png");
                
      • toString

        public java.lang.String toString()
        Returns a human-readable string representation of this AztecProperties
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents this AztecProperties