def set_appearance(self):
        dataDir = Settings.dataDir + 'WorkingWithBarcode/UtilityFeatures/CodeText/'

        bb = BarCodeBuilder()

        # Set up code text (data to be encoded)
        bb.setCodeText("1234567")

        # Set up code text color
        color = Color
        bb.setCodeTextColor(color.RED)

        # Set the location of the code text to above the barcode
        codeLocation = CodeLocation
        bb.setCodeLocation(codeLocation.Above)

        #Increase the space between code text and barcode to 1 point
        bb.setCodeTextSpace(1.0)

        # Set the symbology type to Code128
        symbology = Symbology
        bb.setSymbologyType(symbology.Code128)

        # Save the image to your system and set its image format to Jpeg
        barCodeImageFormat = BarCodeImageFormat
        bb.save(dataDir + "barcode.jpg", barCodeImageFormat.Jpeg)

        # Display Status
        print "Barcode with custom appearance saved as JPEG image successfully."
    def set_appearance(self):
        dataDir = Settings.dataDir + 'WorkingWithBarcode/UtilityFeatures/CodeText/'

        bb =  BarCodeBuilder()

        # Set up code text (data to be encoded)
        bb.setCodeText("1234567")

        # Set up code text color
        color = Color
        bb.setCodeTextColor(color.RED)

        # Set the location of the code text to above the barcode
        codeLocation= CodeLocation
        bb.setCodeLocation(codeLocation.Above)

        #Increase the space between code text and barcode to 1 point
        bb.setCodeTextSpace(1.0)

        # Set the symbology type to Code128
        symbology= Symbology
        bb.setSymbologyType(symbology.Code128)

        # Save the image to your system and set its image format to Jpeg
        barCodeImageFormat= BarCodeImageFormat
        bb.save(dataDir + "barcode.jpg", barCodeImageFormat.Jpeg)

        # Display Status
        print "Barcode with custom appearance saved as JPEG image successfully."
    def __init__(self):
        dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Basic2DBarcodeFeatures/CreatingQRBarcode/'
        
        # Instantiate barcode object
        builder =  BarCodeBuilder()

        symbology= Symbology
        builder.setSymbologyType(symbology.QR)

        builder.setCodeText("1234567890")

        # Hide code text
        codeLocation= CodeLocation
        builder.setCodeLocation(codeLocation.None)

        builder.setRotationAngleF(90)

        # Save the image to your system and set its image format to Jpeg
        builder.save(dataDir + "CreatingQRBarcode.jpg")

        # Display Status
        print "Created QR Barcode Successfully."
    def __init__(self):
        dataDir = Settings.dataDir + 'WorkingWith2DBarcodes/Utility2DBarcodeFeatures/HideCodeText/'
        
        # Instantiate barcode object
        builder =  BarCodeBuilder()

        symbology= Symbology
        builder.setSymbologyType(symbology.DataMatrix)

        builder.setCodeText("The quick brown fox jumps over the lazy dog\n The quick brown fox jumps over the lazy dog\n")

        codeLocation= CodeLocation
        builder.setCodeLocation(codeLocation.None)

        font =  Font

        builder.setCodeTextFont( Font("Serif", font.BOLD + font.ITALIC, 20))

        # Save the image
        builder.save(dataDir + "HideCodeText.jpg")

        # Display Status
        print "Hide Code Text Successfully."