Inherits Enum.
Han Xin Code encoding mode.
It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
Auto mode
codetext = "1234567890ABCDEFGabcdefg,Han Xin Code"
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9]
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, None)
generator.setCodeText(encodedArr, None)
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.BINARY)
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
codetext = "ΑΒΓΔΕ"
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.ECI)
generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(Generation.ECIEncodings.ISO_8859_7)
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
codetext = "https://www.test.com/%BC%DE%%%ab/search=test"
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.URI)
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)