使用drawsting功能的质量差的条形码 [英] Poor quality barcode using drawsting function

查看:95
本文介绍了使用drawsting功能的质量差的条形码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我写了一个VB.Net应用程序,用

条形码创建图片徽章。问题是条形码质量不够好

需要扫描仪读取。我正在使用DRAWSTRING功能将条形码放在图像上,但无论使用什么图形设置,我操纵的是
(.InterpolationMode / .CompositingQuality等),条形码

图像质量很差。对于exaple我正在使用一个实心刷,

是黑色的,但条形码的一些条形显示为浅灰色。

我甚至增加了条形码的字体大小和我可以合理地计算,但问题仍然存在。任何想法或

关于如何解决这个问题的建议将不胜感激。


感谢您的时间。

Hey all,

I''ve written a VB.Net app that creates picture badges complete with
barcodes. The problem is that the barcode quality is not good enough
to be read by scanners. I''m using the DRAWSTRING function to place
the barcode on the image, but no matter what graphics settings
(.InterpolationMode/.CompositingQuality etc.) I manipulate, the barcode
image remains poor quality. For exaple I''m using a solidbrush that
is black, but some of the bars of the barcode show as a light gray.
I''ve even increased the fontsize of the barcode as much as I
reasonably could and the problem is still there. Any ideas or
suggestions on how to fix this would be greatly appreciated.

Thanks for your time.

推荐答案

您使用的代码类型是什么?你在使用条形码字体吗?


如果您习惯使用图形功能,我可以给您发送一些代码

将您的输入转换为字符串条形码的表示(0和

1s)......从那里,你可以直接画一个白色或黑色的条形图

你想要的高度和窄/宽的宽高比。


i相信你正在使用条形码字体...上面的方法会省你

research /故障排除就可以直接渲染

并测试输出。


i相信 http://www.renderbar.com 正在开源,带有activex

条码控制...这可能值得一个免费的尝试。


无论如何,hth。

< yo ********* @ hotmail.com>在消息中写道

新闻:11 ********************** @ g44g2000cwa.googlegr oups.com ...

|嘿所有,

|

|我写了一个VB.Net应用程序,用

|创建图片徽章条形码。问题是条形码质量不够好

|由扫描仪阅读。我正在使用DRAWSTRING函数来放置

|图像上的条形码,但不管是什么图形设置

| (.InterpolationMode / .CompositingQuality等)我操纵,条形码

|图像质量很差。为了exaple我正在使用一个实心的刷子

|是黑色的,但条形码的一些条形显示为浅灰色。

|我甚至增加了条形码的字体大小,就像我
|一样合理的可能,问题仍然存在。任何想法或

|关于如何解决这个问题的建议将不胜感激。

|

|感谢您的时间。

|
what code type are you using? are you using a barcode font?

if you''re comfortable using graphics functions, i can email you some code
that converts your input to a string representation of the barcode ("0"s and
"1"s)...from there, you could just directly draw a white or black bar to
your desired height and narrow/wide aspect ratio.

i believe you''re using a barcode font...the above approach would save you
research/troubleshooting on that end and would allow you to directly render
and test the output.

i believe http://www.renderbar.com is going open source with an activex
barcoding control...that may be worth a free try too.

anyway, hth.
<yo*********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
| Hey all,
|
| I''ve written a VB.Net app that creates picture badges complete with
| barcodes. The problem is that the barcode quality is not good enough
| to be read by scanners. I''m using the DRAWSTRING function to place
| the barcode on the image, but no matter what graphics settings
| (.InterpolationMode/.CompositingQuality etc.) I manipulate, the barcode
| image remains poor quality. For exaple I''m using a solidbrush that
| is black, but some of the bars of the barcode show as a light gray.
| I''ve even increased the fontsize of the barcode as much as I
| reasonably could and the problem is still there. Any ideas or
| suggestions on how to fix this would be greatly appreciated.
|
| Thanks for your time.
|


您使用的代码类型是什么?你在使用条形码字体吗?


如果您习惯使用图形功能,我可以给您发送一些代码

将您的输入转换为字符串条形码的表示(0和

1s)......从那里,你可以直接画一个白色或黑色的条形图

你想要的高度和窄/宽的宽高比。


i相信你正在使用条形码字体...上面的方法会省你

research /故障排除就可以直接渲染

并测试输出。


i相信 http://www.renderbar.com 正在开源,带有activex

条码控制...这可能值得一个免费的尝试。


无论如何,hth。

< yo ********* @ hotmail.com>在消息中写道

新闻:11 ********************** @ g44g2000cwa.googlegr oups.com ...

|嘿所有,

|

|我写了一个VB.Net应用程序,用

|创建图片徽章条形码。问题是条形码质量不够好

|由扫描仪阅读。我正在使用DRAWSTRING函数来放置

|图像上的条形码,但不管是什么图形设置

| (.InterpolationMode / .CompositingQuality等)我操纵,条形码

|图像质量很差。为了exaple我正在使用一个实心的刷子

|是黑色的,但条形码的一些条形显示为浅灰色。

|我甚至增加了条形码的字体大小,就像我
|一样合理的可能,问题仍然存在。任何想法或

|关于如何解决这个问题的建议将不胜感激。

|

|谢谢你的时间。

|
what code type are you using? are you using a barcode font?

if you''re comfortable using graphics functions, i can email you some code
that converts your input to a string representation of the barcode ("0"s and
"1"s)...from there, you could just directly draw a white or black bar to
your desired height and narrow/wide aspect ratio.

i believe you''re using a barcode font...the above approach would save you
research/troubleshooting on that end and would allow you to directly render
and test the output.

i believe http://www.renderbar.com is going open source with an activex
barcoding control...that may be worth a free try too.

anyway, hth.
<yo*********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
| Hey all,
|
| I''ve written a VB.Net app that creates picture badges complete with
| barcodes. The problem is that the barcode quality is not good enough
| to be read by scanners. I''m using the DRAWSTRING function to place
| the barcode on the image, but no matter what graphics settings
| (.InterpolationMode/.CompositingQuality etc.) I manipulate, the barcode
| image remains poor quality. For exaple I''m using a solidbrush that
| is black, but some of the bars of the barcode show as a light gray.
| I''ve even increased the fontsize of the barcode as much as I
| reasonably could and the problem is still there. Any ideas or
| suggestions on how to fix this would be greatly appreciated.
|
| Thanks for your time.
|


史蒂夫,


你对我是正确的使用条形码字体。如果我使用Word创建条形码,那么字体本身就像一个冠军一样工作

。看来

是DrawString函数给我带来的麻烦。

我有兴趣检查你的代码。这是一个不同的

方法,我没想到。它可能对我有用,如果我能弄清楚

字符与

字体生成的模式之间的关系。


非常感谢

Steve,

You''re correct about me using a barcode font. The font itself works
like a champ if, for example I create the barcode using Word. It seems
to be the DrawString function giving me all the headaches.
I''m interested in checking out your code. That''s a different
approach I didn''t think of. It may work for me if I can figure out
the relationship between the characters and the pattern generated by
the font.

Thanks a lot


这篇关于使用drawsting功能的质量差的条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆