如何根据打印机的页面尺寸打印条形码图像 [英] how print barcode image according to page size of printer
问题描述
如何根据打印机的页面尺寸打印条形码图像?
实际上,我已经生成了条形码图像,现在想根据页面大小进行打印.
例如,如果页面大小为A4,则我们可以为页面分配24个条形码图像,或者单击打印预览按钮,我们可以在打印预览中看到4列和6行,并且在打印预览中总共可以显示24张图像. >
提前致谢.
请尽快回复我.
C#中的图像处理实验室 [
How can we print barcode image according to page size of printer?
Actually, I have generated the barcode image and now want to print according to page size.
Eg If a page size is A4 then we can assign 24 barcode images to a page, or on click of print preview button we can see 4 column and 6 rows in print preview and total 24 images are shown on the print preview.
Thanks in advance.
Please reply me soon as possible.
Image Processing Lab in C#[^]
[edit]Code block removed, urgency deleted - OriginalGriff[/edit]
推荐答案
条形码很有趣,一件事您永远都不要尝试改变大小图像:会降低条形码质量.
而是以打印设备可用的分辨率直接在打印表面上创建条形码.
使用 PrintDocument [
Barcodes are funny things, the one thing you should never do it try to re-size images of them: you will degrade barcode quality.
Instead create the barcode directly onto the print surface, at the resolution available to the print device.
Use a PrintDocument[^] to achieve this.
这篇关于如何根据打印机的页面尺寸打印条形码图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!