def __init__(self): dataDir = Settings.dataDir + 'WorkingWithBarcodeImage/BarcodeImageBasicFeatures/RotateImage' # Instantiate barcode object bb = BarCodeBuilder() # Set the code text of the barcode bb.setCodeText("12345678") # Roate clockwise for 180 degree (upside down) bb.setRotationAngleF(180) # Set the symbology type to code39 symbology = Symbology bb.setSymbologyType(symbology.Code39Extended) bb.save(dataDir + "Rotate.jpg") # Display Status. print "Done with image rotation, please check the output file."
def __init__(self): dataDir = Settings.dataDir + 'WorkingWithBarcodeImage/BarcodeImageBasicFeatures/RotateImage' # Instantiate barcode object bb = BarCodeBuilder() # Set the code text of the barcode bb.setCodeText("12345678") # Roate clockwise for 180 degree (upside down) bb.setRotationAngleF(180) # Set the symbology type to code39 symbology = Symbology bb.setSymbologyType(symbology.Code39Extended) bb.save(dataDir + "Rotate.jpg"); # Display Status. print "Done with image rotation, please check the output file."
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/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."