@@ -207,6 +207,15 @@ while while_loop:
|
|||||||
# 将二维码添加到图像上
|
# 将二维码添加到图像上
|
||||||
image.paste(qr_image, (x_position, y_position))
|
image.paste(qr_image, (x_position, y_position))
|
||||||
|
|
||||||
|
|
||||||
|
# 生成条形码
|
||||||
|
barcode = Code128(dn, writer=barcode_options["writer"])
|
||||||
|
barcode_file = barcode.save(barcode_options["output"])
|
||||||
|
# 打开生成的条形码图像
|
||||||
|
barcode_image = Image.open(barcode_file)
|
||||||
|
# 将条形码添加到图像上
|
||||||
|
image.paste(barcode_image, (x_position+600, y_position+50))
|
||||||
|
|
||||||
# 更新下一个条形码的位置
|
# 更新下一个条形码的位置
|
||||||
y_position += 600
|
y_position += 600
|
||||||
|
|
||||||
@@ -231,6 +240,16 @@ while while_loop:
|
|||||||
# 将二维码添加到图像上
|
# 将二维码添加到图像上
|
||||||
image.paste(qr_image, (x_position, y_position))
|
image.paste(qr_image, (x_position, y_position))
|
||||||
|
|
||||||
|
|
||||||
|
# 生成条形码
|
||||||
|
barcode = Code128(bilid, writer=barcode_options["writer"])
|
||||||
|
barcode_file = barcode.save(barcode_options["output"])
|
||||||
|
# 打开生成的条形码图像
|
||||||
|
barcode_image = Image.open(barcode_file)
|
||||||
|
# 将条形码添加到图像上
|
||||||
|
image.paste(barcode_image, (x_position+600, y_position+50))
|
||||||
|
|
||||||
|
|
||||||
# 更新下一个条形码的位置
|
# 更新下一个条形码的位置
|
||||||
y_position += 600
|
y_position += 600
|
||||||
|
|
||||||
@@ -253,6 +272,14 @@ while while_loop:
|
|||||||
# 将二维码添加到图像上
|
# 将二维码添加到图像上
|
||||||
image.paste(qr_image, (x_position, y_position))
|
image.paste(qr_image, (x_position, y_position))
|
||||||
|
|
||||||
|
# 生成条形码
|
||||||
|
barcode = Code128(FeatureByte, writer=barcode_options["writer"])
|
||||||
|
barcode_file = barcode.save(barcode_options["output"])
|
||||||
|
# 打开生成的条形码图像
|
||||||
|
barcode_image = Image.open(barcode_file)
|
||||||
|
# 将条形码添加到图像上
|
||||||
|
image.paste(barcode_image, (x_position+150, y_position+500))
|
||||||
|
|
||||||
# 更新下一个条形码的位置
|
# 更新下一个条形码的位置
|
||||||
y_position += 400
|
y_position += 400
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user